Vector3 Size { get; set; }

robot_2Generated
code_blocksInput

Description

The Size property of the BBox struct represents the calculated size of the Axis-Aligned Bounding Box (AABB) on each axis. It is a Vector3 that provides the dimensions of the bounding box in 3D space.

Usage

Use the Size property to retrieve the dimensions of a BBox instance. This property is read-only and is automatically calculated based on the minimum and maximum extents of the bounding box.

Example

// Example of accessing the Size property of a BBox
BBox boundingBox = new BBox();
Vector3 size = boundingBox.Size;

// Output the size of the bounding box
// Note: Replace with appropriate logging or display method
// e.g., Debug.Log(size);
// This will show the width, height, and depth of the bounding box.