Skip to content

API > PhysicCapsule


PhysicCapsule⚓︎

Describes a capsule in space for physical calculations. Used for CapsuleCast.

Members⚓︎

Properties⚓︎

Name Description
PhysicCapsule.directionProperty The direction into which to sweep the capsule.
PhysicCapsule.layerMaskProperty A Layer mask that is used to selectively ignore colliders when casting a capsule. Physics.DefaultRaycastLayers by default.
PhysicCapsule.maxDistanceProperty The max length of the sweep. Mathf.Infinity by default.
PhysicCapsule.point1Property The center of the sphere at the start of the capsule.
PhysicCapsule.point2Property The center of the sphere at the end of the capsule.
PhysicCapsule.queryTriggerInteractionProperty Specifies whether this query should hit Triggers. QueryTriggerInteraction.UseGlobal by default.
PhysicCapsule.radiusProperty The radius of the capsule.

Constructor⚓︎

Name Description
PhysicCapsule(point1, point2, radius, direction)Constructor Constructs new PhysicCapsule.