Skip to main content

PhysicBox

Describes a box in space for physical calculations. Used for BoxCast.

Members

Properties

NameDescription
PhysicBox.centerCenter of the box.
PhysicBox.directionThe direction in which to cast the box.
PhysicBox.halfExtentsHalf the size of the box in each dimension.
PhysicBox.layerMaskA Layer mask that is used to selectively ignore colliders when casting a capsule. Physics.DefaultRaycastLayers by default.
PhysicBox.maxDistanceThe max length of the cast. Mathf.Infinity by default.
PhysicBox.orientationRotation of the box. Quaternion.identity by default.
PhysicBox.queryTriggerInteractionSpecifies whether this query should hit Triggers. QueryTriggerInteraction.UseGlobal by default.

Constructor

NameDescription
[PhysicBox(center, halfExtents, direction)](./constructor .md)Constructs new PhysicBox.