Trait ncollide2df64::narrow::GeomGeomCollisionDetector
pub trait GeomGeomCollisionDetector { fn update(&mut self, &GeomGeomDispatcher, &M, &Geom, &M, &Geom); fn num_colls(&self) -> uint; fn colls(&self, &mut ~[Contact]); }
Same as the CollisionDetector
trait but using dynamic dispatch on the geometries.
Required Methods
fn update(&mut self, &GeomGeomDispatcher, &M, &Geom, &M, &Geom)
Runs the collision detection on two objects. It is assumed that the same collision detector (the same structure) is always used with the same pair of object.
fn num_colls(&self) -> uint
The number of collision detected during the last update.
fn colls(&self, &mut ~[Contact])
Collects the collisions detected during the last update.
Implementors
DetectorWithoutRedispatch<D>
GeomConcaveGeom<G1, G2>
ConcaveGeomGeom<G1, G2>