Set or get the axis aligned bounding box for this object. The bounding box is used to define the spatial limits of the SceneObject
in the 3D space, which can be useful for collision detection, visibility checks, and other spatial queries.
Set or get the axis aligned bounding box for this object. The bounding box is used to define the spatial limits of the SceneObject
in the 3D space, which can be useful for collision detection, visibility checks, and other spatial queries.
You can use the Bounds
property to retrieve or assign a BBox
to a SceneObject
. This property is not static, so it must be accessed through an instance of SceneObject
.
// Example of setting the Bounds property SceneObject mySceneObject = new SceneObject(); BBox newBounds = new BBox(new Vector3(-1, -1, -1), new Vector3(1, 1, 1)); mySceneObject.Bounds = newBounds; // Example of getting the Bounds property BBox currentBounds = mySceneObject.Bounds; Vector3 min = currentBounds.Mins; Vector3 max = currentBounds.Maxs;