Enum nphysics2d::detection::constraint::Constraint [] [src]

pub enum Constraint<N: Real> {
    RBRB(Rc<RefCell<RigidBody<N>>>, Rc<RefCell<RigidBody<N>>>, Contact<Point<N>>),
    BallInSocket(Rc<RefCell<BallInSocket<N>>>),
    Fixed(Rc<RefCell<Fixed<N>>>),
}

A constraint between two rigid bodies.

Variants

A contact.

A ball-in-socket joint.

A fixed joint.

Trait Implementations

impl<N: Real> Clone for Constraint<N>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more