[−][src]Struct box2d_rs::b2_joint::B2joint
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
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,
<D as UserDataType>::Joint: Unpin,
impl<D> !UnwindSafe for B2joint<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>,