Function ambient_api_core::prelude::physics::raycast
source · pub fn raycast(origin: Vec3, direction: Vec3) -> Vec<RaycastHit>
Available on crate feature
server
only.Expand description
Casts a ray from origin
in direction
, and returns the RaycastHits along the way.
direction
must be normalized.