Struct ncollide2df64::narrow::ConcaveGeomGeom
pub struct ConcaveGeomGeom<G1, G2> { // some fields omitted }
Collision detector between a concave geometry and another geometry.
Methods
impl<G1, G2> ConcaveGeomGeom<G1, G2>
fn new() -> ConcaveGeomGeom<G1, G2>
Creates a new collision detector between a concave geometry and another geometry.
Trait Implementations
impl<G1: 'static + ConcaveGeom, G2: 'static + Geom> GeomGeomCollisionDetector for ConcaveGeomGeom<G1, G2>
fn update(&mut self, dispatcher: &GeomGeomDispatcher, m1: &M, g1: &Geom, m2: &M, g2: &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, out: &mut ~[Contact])
Collects the collisions detected during the last update.