Struct ncollide::narrow_phase::OneShotContactManifoldGenerator [] [src]

pub struct OneShotContactManifoldGenerator<P, M, CD> where
    P: Point
{ /* fields omitted */ }

Contact manifold generator producing a full manifold at the first update.

Whenever a new contact is detected (i.e. when the current manifold is empty) a full manifold is generated. Then, the manifold is incrementally updated by an IncrementalContactManifoldGenerator.

Methods

impl<P, M, CD> OneShotContactManifoldGenerator<P, M, CD> where
    CD: ContactGenerator<P, M>,
    P: Point
[src]

Creates a new one shot contact manifold generator.

Trait Implementations

impl<P, M, CD> ContactGenerator<P, M> for OneShotContactManifoldGenerator<P, M, CD> where
    CD: ContactGenerator<P, M>,
    M: Isometry<P>,
    P: Point
[src]

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. Read more

The number of contacts generated the last update.

Collects the contacts generated during the last update.

impl<P, M, CD> Clone for OneShotContactManifoldGenerator<P, M, CD> where
    CD: Clone,
    M: Clone,
    P: Clone + Point
[src]