Trait CollisionQuery

Source
pub trait CollisionQuery {
    // Required method
    fn sweep(&self, sweep: Sweep) -> Result<Option<f32>, CameraError>;
}
Expand description

Return the first sphere-center impact fraction in [0,1], or None if clear. A blocked starting point must return Some(0), including zero-length sweeps. Stationary sweeps must return only None or Some(0). Use Sweep::probe for checked results and padded clearance without changing this adapter contract.

Required Methods§

Source

fn sweep(&self, sweep: Sweep) -> Result<Option<f32>, CameraError>

Implementations on Foreign Types§

Source§

impl CollisionQuery for [Blocker]

Implementors§