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

