ncollide3d::pipeline::broad_phase

Trait BroadPhaseInterferenceHandler

Source
pub trait BroadPhaseInterferenceHandler<T> {
    // Required methods
    fn is_interference_allowed(&mut self, data1: &T, data2: &T) -> bool;
    fn interference_started(&mut self, data1: &T, data2: &T);
    fn interference_stopped(&mut self, data1: &T, data2: &T);
}
Expand description

Proximity handling for BroadPhase updates.

Required Methods§

Source

fn is_interference_allowed(&mut self, data1: &T, data2: &T) -> bool

A pre-filter that may cheaply discard objects before checking for bounding volume interference.

Source

fn interference_started(&mut self, data1: &T, data2: &T)

Handle a starting interference.

Source

fn interference_stopped(&mut self, data1: &T, data2: &T)

Handle a stopping interference.

Implementors§