pub struct B2jointDef<D: UserDataType> {
pub jtype: B2jointType,
pub user_data: Option<D::Joint>,
pub body_a: Option<BodyPtr<D>>,
pub body_b: Option<BodyPtr<D>>,
pub collide_connected: bool,
}Expand description
Joint definitions are used to construct joints.
Fields§
§jtype: B2jointTypeThe joint type is set automatically for concrete joint types.
user_data: Option<D::Joint>Use this to attach application specific data to your joints.
body_a: Option<BodyPtr<D>>The first attached body.
body_b: Option<BodyPtr<D>>The second attached body.
collide_connected: boolSet this flag to true if the attached bodies should collide.
Trait Implementations§
Source§impl<D: Clone + UserDataType> Clone for B2jointDef<D>
impl<D: Clone + UserDataType> Clone for B2jointDef<D>
Source§fn clone(&self) -> B2jointDef<D>
fn clone(&self) -> B2jointDef<D>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<D: UserDataType> Default for B2jointDef<D>
impl<D: UserDataType> Default for B2jointDef<D>
Auto Trait Implementations§
impl<D> Freeze for B2jointDef<D>
impl<D> !RefUnwindSafe for B2jointDef<D>
impl<D> !Send for B2jointDef<D>
impl<D> !Sync for B2jointDef<D>
impl<D> Unpin for B2jointDef<D>
impl<D> UnsafeUnpin for B2jointDef<D>
impl<D> !UnwindSafe for B2jointDef<D>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more