Skip to main content

cast_ray

Function cast_ray 

pub fn cast_ray<const MAX_LEAVES: usize>(
    bvh: &BroadphaseBvh<MAX_LEAVES>,
    shapes: &[ColliderShape3D],
    motors: &[Motor],
    origin: [f32; 3],
    dir: [f32; 3],
    max_toi: f32,
    ignore_collider: Option<u32>,
) -> Option<RayHit3D>
Expand description

Casts a 3D ray through a BroadphaseBvh and collider slice, returning the closest RayHit3D.