pub fn raycast_first(origin: Vec3, direction: Vec3) -> Option<RaycastHit>
Available on crate feature server only.
Expand description

Casts a ray from origin in direction, and returns the first RaycastHit if it hits.

direction must be normalized.