Vector3 Maxs

robot_2Generated
code_blocksInput

Description

The Maxs field represents the maximum corner extents of the Axis-Aligned Bounding Box (AABB). It is a Vector3 that defines the farthest point on each axis of the bounding box. The values of Maxs should be mathematically larger than the corresponding values of Mins, which represent the minimum corner extents of the AABB. This ensures that the bounding box is properly defined in 3D space.

Usage

Use the Maxs field to determine or set the maximum extents of a bounding box in 3D space. This is useful for collision detection, spatial queries, and other geometric operations where defining the bounds of an object is necessary.

Ensure that the values of Maxs are greater than those of Mins on each axis to maintain a valid bounding box.

Example

// Example of setting the Maxs field of a BBox
BBox boundingBox = new BBox();
boundingBox.Maxs = new Vector3(10.0f, 10.0f, 10.0f);

// Ensure Mins is set appropriately
boundingBox.Mins = new Vector3(0.0f, 0.0f, 0.0f);

// Now boundingBox represents a cube from (0,0,0) to (10,10,10)