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