[][src]Struct box2d_rs::b2_joint::B2joint

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

Implementations

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

The base joint class. Joints are used to constraint two bodies together in various fashions. Some joints also feature limits and motors.

pub fn get_type(&self) -> B2jointType[src]

Get the type of the concrete joint.

pub fn get_body_a(&self) -> BodyPtr<D>[src]

Get the first body attached to this joint.

pub fn get_body_b(&self) -> BodyPtr<D>[src]

Get the second body attached to this joint.

pub fn get_next(&self) -> B2jointPtr<D>[src]

Get the next joint the world joint list.

pub fn get_user_data(&self) -> Option<D::Joint>[src]

Get the user data pointer.

pub fn set_user_data(&mut self, data: D::Joint)[src]

Set the user data pointer.

pub fn is_enabled(&self) -> bool[src]

Short-cut function to determine if either body is enabled.

pub fn get_collide_connected(&self) -> bool[src]

Get collide connected. Note: modifying the collide connect flag won't work correctly because the flag is only checked when fixture AABBs begin to overlap.

Trait Implementations

impl<D: Clone + UserDataType> Clone for B2joint<D> where
    D::Joint: Clone
[src]

Auto Trait Implementations

impl<D> !RefUnwindSafe for B2joint<D>

impl<D> !Send for B2joint<D>

impl<D> !Sync for B2joint<D>

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

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