[][src]Struct box2d_rs::joints::b2_mouse_joint::B2mouseJointDef

pub struct B2mouseJointDef<D: UserDataType> {
    pub base: B2jointDef<D>,
    pub target: B2vec2,
    pub max_force: f32,
    pub frequency_hz: f32,
    pub damping_ratio: f32,
}

Mouse joint definition. This requires a world target point, tuning parameters, and the time step.

Fields

base: B2jointDef<D>target: B2vec2

The initial world target point. This is assumed to coincide with the body anchor initially.

max_force: f32

The maximum constraint force that can be exerted to move the candidate body. Usually you will express as some multiple of the weight (multiplier * mass * gravity).

frequency_hz: f32

The response speed.

damping_ratio: f32

The damping ratio. 0 = no damping, 1 = critical damping.

Trait Implementations

impl<D: Clone + UserDataType> Clone for B2mouseJointDef<D>[src]

impl<D: UserDataType> Default for B2mouseJointDef<D>[src]

Auto Trait Implementations

impl<D> !RefUnwindSafe for B2mouseJointDef<D>

impl<D> !Send for B2mouseJointDef<D>

impl<D> !Sync for B2mouseJointDef<D>

impl<D> Unpin for B2mouseJointDef<D> where
    <D as UserDataType>::Joint: Unpin

impl<D> !UnwindSafe for B2mouseJointDef<D>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.