Skip to content

API > PhysicBox


PhysicBox⚓︎

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

Members⚓︎

Properties⚓︎

Name Description
PhysicBox.centerProperty Center of the box.
PhysicBox.directionProperty The direction in which to cast the box.
PhysicBox.halfExtentsProperty Half the size of the box in each dimension.
PhysicBox.layerMaskProperty A Layer mask that is used to selectively ignore colliders when casting a capsule. Physics.DefaultRaycastLayers by default.
PhysicBox.maxDistanceProperty The max length of the cast. Mathf.Infinity by default.
PhysicBox.orientationProperty Rotation of the box. Quaternion.identity by default.
PhysicBox.queryTriggerInteractionProperty Specifies whether this query should hit Triggers. QueryTriggerInteraction.UseGlobal by default.

Constructor⚓︎

Name Description
PhysicBox(center, halfExtents, direction)Constructor Constructs new PhysicBox.