[][src]Struct box2d_rs::joints::b2_friction_joint::B2frictionJoint

pub struct B2frictionJoint<D: UserDataType> { /* fields omitted */ }

Friction joint. This is used for top-down friction. It provides 2D translational friction and angular friction.

Implementations

impl<D: UserDataType> B2frictionJoint<D>[src]

pub fn get_local_anchor_a(&self) -> B2vec2[src]

The local anchor point relative to body_a's origin.

pub fn get_local_anchor_b(&self) -> B2vec2[src]

The local anchor point relative to body_b's origin.

pub fn set_max_force(&mut self, force: f32)[src]

Set the maximum friction force in n.

pub fn get_max_force(&self) -> f32[src]

Get the maximum friction force in n.

pub fn set_max_torque(&mut self, torque: f32)[src]

Set the maximum friction torque in n*m.

pub fn get_max_torque(&self) -> f32[src]

Get the maximum friction torque in n*m.

Trait Implementations

impl<D: UserDataType> B2jointTraitDyn<D> for B2frictionJoint<D>[src]

pub fn get_reaction_force(&self, inv_dt: f32) -> B2vec2[src]

Get the reaction force given the inverse time step. Unit is n.

pub fn dump(&self)[src]

dump joint to dmLog

impl<D: UserDataType> ToDerivedJoint<D> for B2frictionJoint<D>[src]

Auto Trait Implementations

impl<D> !RefUnwindSafe for B2frictionJoint<D>

impl<D> !Send for B2frictionJoint<D>

impl<D> !Sync for B2frictionJoint<D>

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

impl<D> !UnwindSafe for B2frictionJoint<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, 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.