Struct ncollide2df64::narrow::PlaneImplicit
pub struct PlaneImplicit<G> { // some fields omitted }
Collision detector between a plane and a geometry implementing the Implicit
trait.
This detector generates only one contact point. For a full manifold generation, see
IncrementalContactManifoldGenerator
.
Methods
impl<G> PlaneImplicit<G>
fn new(prediction: N) -> PlaneImplicit<G>
Creates a new persistent collision detector between a plane and a geometry with a support mapping function.
Trait Implementations
impl<__E: Encoder, G: Encodable<__E>> Encodable<__E> for PlaneImplicit<G>
Automatically derived.
fn encode(&self, __arg_0: &mut __E)
impl<__D: Decoder, G: Decodable<__D>> Decodable<__D> for PlaneImplicit<G>
Automatically derived.
fn decode(__arg_0: &mut __D) -> PlaneImplicit<G>
impl<G> Clone for PlaneImplicit<G>
fn clone(&self) -> PlaneImplicit<G>
impl<G: Implicit<V, M>> CollisionDetector<Plane, G> for PlaneImplicit<G>
fn update(&mut self, ma: &M, plane: &Plane, mb: &M, b: &G)
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_colls: &mut ~[Contact])
Collects the collisions detected during the last update.
fn toi(_: Option<PlaneImplicit<G>>, ma: &M, dir: &V, _: &N, plane: &Plane, mb: &M, b: &G) -> Option<N>
Computes the time of impact of two objects.
Arguments
m1
- the first object transform.dir
- the first object displacement direction.dist
- the first object displacement distance.g1
- the first object.m2
- the second object transform.g2
- the second object.