Skip to content

API > PhysicRay


PhysicRay⚓︎

Describes a Ray in space for physical calculations. Used for RayCast and more.

Members⚓︎

Properties⚓︎

Name Description
PhysicRay.layerMaskProperty A Layer mask that is used to selectively ignore colliders when casting a ray. Default Physics.DefaultRaycastLayers.
PhysicRay.maxDistanceProperty The max distance the ray should check for collisions. Default Mathf.Infinity.
PhysicRay.queryTriggerInteractionProperty Specifies whether this query should hit Triggers. Default QueryTriggerInteraction.UseGlobal.
PhysicRay.rayProperty The starting point and direction of the ray.

Constructor⚓︎

Name Description
PhysicRay(origin, direction)Constructor Create new PhysicRay by origin and direction
PhysicRay(ray)Constructor Create new PhysicRay with providing a Ray.