Description
The BoundingBox
property of the CharacterController
class represents the bounding box of the character. This bounding box is used to define the spatial limits of the character within the game world, which is crucial for collision detection and physics calculations.
Usage
Use the BoundingBox
property to get or set the bounding box of a character in your game. This property is essential for ensuring that the character interacts correctly with the environment, such as colliding with walls or other objects.
Example
// Example of accessing the BoundingBox property
CharacterController characterController = new CharacterController();
BBox characterBoundingBox = characterController.BoundingBox;
// Example of setting a new bounding box
BBox newBoundingBox = new BBox(new Vector3(-1, -1, -1), new Vector3(1, 1, 1));
characterController.BoundingBox = newBoundingBox;