PhysicCapsule
7/14/25Less than 1 minute
PhysicCapsule
Describes a capsule in space for physical calculations. Used for CapsuleCast.
Members
Properties
| Name | Description |
|---|---|
PhysicCapsule.direction | The direction into which to sweep the capsule. |
PhysicCapsule.layerMask | A Layer mask that is used to selectively ignore colliders when casting a capsule. Physics.DefaultRaycastLayers by default. |
PhysicCapsule.maxDistance | The max length of the sweep. Mathf.Infinity by default. |
PhysicCapsule.point1 | The center of the sphere at the start of the capsule. |
PhysicCapsule.point2 | The center of the sphere at the end of the capsule. |
PhysicCapsule.queryTriggerInteraction | Specifies whether this query should hit Triggers. QueryTriggerInteraction.UseGlobal by default. |
PhysicCapsule.radius | The radius of the capsule. |
Constructor
| Name | Description |
|---|---|
PhysicCapsule(point1, point2, radius, direction) | Constructs new PhysicCapsule. |

