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