[][src]Struct nphysics2d::joint::MouseConstraint

pub struct MouseConstraint<N: Real> { /* fields omitted */ }

A spring-like constraint to be used to drag a body part with the mouse.

Methods

impl<N: Real> MouseConstraint<N>
[src]

Initialize a mouse constraint between two bodies.BodyPartHandle

Typically, b1 will be the ground and the anchor the position of the mouse. Both anchors are expressed in the local coordinate frames of the corresponding body parts.

Change the first anchor, expressed in the local space of the first body part.

Change the first anchor, expressed in the local space of the second body part.

Trait Implementations

impl<N: Real> JointConstraint<N> for MouseConstraint<N>
[src]

Return true if the constraint is active. Read more

impl<N: Real> NonlinearConstraintGenerator<N> for MouseConstraint<N>
[src]

Auto Trait Implementations

impl<N> Send for MouseConstraint<N> where
    N: Scalar

impl<N> Sync for MouseConstraint<N> where
    N: Scalar

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 

impl<T> Same for T

Should always be Self