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§
Sourcefn is_interference_allowed(&mut self, data1: &T, data2: &T) -> bool
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.
Sourcefn interference_started(&mut self, data1: &T, data2: &T)
fn interference_started(&mut self, data1: &T, data2: &T)
Handle a starting interference.
Sourcefn interference_stopped(&mut self, data1: &T, data2: &T)
fn interference_stopped(&mut self, data1: &T, data2: &T)
Handle a stopping interference.