PhysicBox
7/14/25Less than 1 minute
PhysicBox
Describes a box in space for physical calculations. Used for BoxCast.
Members
Properties
Name | Description |
---|---|
PhysicBox .center | Center of the box. |
PhysicBox .direction | The direction in which to cast the box. |
PhysicBox .halfExtents | Half the size of the box in each dimension. |
PhysicBox .layerMask | A Layer mask that is used to selectively ignore colliders when casting a capsule. Physics.DefaultRaycastLayers by default. |
PhysicBox .maxDistance | The max length of the cast. Mathf.Infinity by default. |
PhysicBox .orientation | Rotation of the box. Quaternion.identity by default. |
PhysicBox .queryTriggerInteraction | Specifies whether this query should hit Triggers. QueryTriggerInteraction.UseGlobal by default. |
Constructor
Name | Description |
---|---|
[PhysicBox(center, halfExtents, direction) ](./constructor .md) | Constructs new PhysicBox. |