SceneTrace Size( BBox& hull )
SceneTrace Size( Vector3& size )
SceneTrace Size( Vector3& mins, Vector3& maxs )

robot_2Generated
code_blocksInput

Description

The Size method in the SceneTrace struct is used to configure the trace as an axis-aligned box with a specified size. This method extracts the minimum and maximum extents from the provided bounding box (BBox), effectively setting the dimensions of the trace.

Usage

To use the Size method, you need to pass a reference to a BBox object that defines the size of the box you want to trace. This method modifies the trace to use the dimensions of the provided bounding box.

Example

// Example of using the Size method
BBox boundingBox = new BBox(new Vector3(-1, -1, -1), new Vector3(1, 1, 1));
SceneTrace trace = new SceneTrace();
trace.Size(ref boundingBox);

// Now the trace is configured to use the dimensions of the bounding box.