Struct ncollide2df64::narrow::GeomGeomDispatcher
pub struct GeomGeomDispatcher { // some fields omitted }
Collision dispatcher between two ~Geom
.
Methods
impl GeomGeomDispatcher
fn new_without_default() -> GeomGeomDispatcher
Creates a new GeomGeomDispatcher
without the default set of collision detectors
factories.
fn register_dynamic_detector<G1: 'static + Any, G2: 'static + Any, D: 'static + Send + Clone + DynamicCollisionDetector<G1, G2>>(&mut self, d: D)
Registers a new dynamic collision detector for two geometries.
fn register_detector<G1: 'static + Any, G2: 'static + Any, D: 'static + Send + CollisionDetector<G1, G2> + Clone>(&mut self, d: D)
Registers a new collision detector for two geometries.
fn unregister_detector<G1: 'static + Any, G2: 'static + Any>(&mut self)
Unregister the collision detector for a givem pair of geometries.
fn dispatch(&self, a: &Geom, b: &Geom) -> ~GeomGeomCollisionDetector
Creates a new collision detector adapted for the two given geometries.
impl GeomGeomDispatcher
fn new() -> GeomGeomDispatcher
Creates a new GeomGeomDispatcher
able do build collision detectors for any valid pair of
geometries supported by ncollide
.
fn register_default_plane_implicit_detector<I: 'static + Implicit<LV, M>>(&mut self, generate_manifold: bool, prediction: &N)
Registers a PlaneImplicit
collision detector between a given implicit geometry and a plane.
fn register_default_implicit_implicit_detector<G1: 'static + Implicit<LV, M> + PreferedSamplingDirections<LV, M>, G2: 'static + Implicit<LV, M> + PreferedSamplingDirections<LV, M>, S: Send + Clone + Simplex<AnnotatedPoint>>(&mut self, generate_manifold: bool, prediction: &N, simplex: &S)
Register an ImplicitImplicit
collision detector between two implicit geometries.
fn register_default_concave_geom_geom_detector<G1: 'static + ConcaveGeom, G2: 'static + Geom>(&mut self)
Register an ConcaveGeomGeom
collision detector between a given concave geometry and a
given geometry.
fn register_detector_with_contact_manifold_generator<G1: 'static + Any, G2: 'static + Any, D: 'static + Send + CollisionDetector<G1, G2> + Clone>(&mut self, d: D, prediction: &N)
Register a given collision detector and adds it a contact manifold generator (a
OneShotContactManifoldGenerator
).
fn register_default_implicit_detectors<G: 'static + Implicit<LV, M> + PreferedSamplingDirections<LV, M>>(&mut self, generate_manifold: bool, prediction: &N)
Register ImplicitImplicit
collision detectors between a given geometry and every implicit
geometry supported by ncollide
.