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
RBRB(Rc<RefCell<RigidBody<N>>>, Rc<RefCell<RigidBody<N>>>, Contact<Point<N>>)
A contact.
BallInSocket(Rc<RefCell<BallInSocket<N>>>)
A ball-in-socket joint.
Fixed(Rc<RefCell<Fixed<N>>>)
A fixed joint.
Trait Implementations
impl<N: Real> Clone for Constraint<N>
[src]
fn clone(&self) -> Constraint<N>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more