PhysicsManager.raycast

cast a ray of a given length in a given direction and return the result. null if no hits.

class PhysicsManager
Nullable!RaycastResult
raycast
(
Vector3 start
,
Vector3 direction
,
float dist
)

Meta