PhysicRay
7/14/25Less than 1 minute
PhysicRay
Describes a Ray in space for physical calculations. Used for RayCast and more.
Members
Properties
| Name | Description |
|---|---|
PhysicRay.layerMask | A Layer mask that is used to selectively ignore colliders when casting a ray. Default Physics.DefaultRaycastLayers. |
PhysicRay.maxDistance | The max distance the ray should check for collisions. Default Mathf.Infinity. |
PhysicRay.queryTriggerInteraction | Specifies whether this query should hit Triggers. Default QueryTriggerInteraction.UseGlobal. |
PhysicRay.ray | The starting point and direction of the ray. |
Constructor
| Name | Description |
|---|---|
PhysicRay(origin, direction) | Create new PhysicRay by origin and direction |
PhysicRay(ray) | Create new PhysicRay with providing a Ray. |

