Trait ncollide2df64::broad::BroadPhase
pub trait BroadPhase<B> { fn add(&mut self, B); fn remove(&mut self, &B); fn update(&mut self); fn update_object(&mut self, &B); }
Trait all broad phase must implement.
This does not do much per se. Useful features are provided by the
traits: InterferencesBroadPhase
, BoundingVolumeBroadPhase
, and RayCastBroadPhase
.
Required Methods
fn add(&mut self, B)
Adds an element to this broad phase.
fn remove(&mut self, &B)
Removes an element from this broad phase.
fn update(&mut self)
Updates the collision pairs based on the objects bounding volumes.
fn update_object(&mut self, &B)
Updates the collision pairs involving one specific object.
Implementors
DBVTBroadPhase<B, BV, D, DV>