Skip to main content

PhysicRay

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

Members

Properties

NameDescription
PhysicRay.layerMaskA Layer mask that is used to selectively ignore colliders when casting a ray. Default Physics.DefaultRaycastLayers.
PhysicRay.maxDistanceThe max distance the ray should check for collisions. Default Mathf.Infinity.
PhysicRay.queryTriggerInteractionSpecifies whether this query should hit Triggers. Default QueryTriggerInteraction.UseGlobal.
PhysicRay.rayThe starting point and direction of the ray.

Constructor

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