[src]

Struct ncollide2df64::narrow::GeomConcaveGeom

pub struct GeomConcaveGeom<G1, G2> {
    // some fields omitted
}

Collision detector between a geometry and a concave geometry.

Methods

impl<G1, G2> GeomConcaveGeom<G1, G2>

fn new() -> GeomConcaveGeom<G1, G2>

Creates a new collision detector between a geometry and a concave geometry.

Trait Implementations

impl<G1: 'static + Geom, G2: 'static + ConcaveGeom> GeomGeomCollisionDetector for GeomConcaveGeom<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.

impl<G1: Geom, G2: ConcaveGeom> DynamicCollisionDetector<G1, G2> for GeomConcaveGeom<G1, G2>