[−][src]Struct box2d_rs::joints::b2_mouse_joint::B2mouseJointDef
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]
pub fn clone(&self) -> B2mouseJointDef<D>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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,
<D as UserDataType>::Joint: Unpin,
impl<D> !UnwindSafe for B2mouseJointDef<D>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,