pub struct b2WheelJointDef { /* private fields */ }Expand description
Wheel joint definition. This requires defining a line of motion using an axis and an anchor point. The definition uses local anchor points and a local axis so that the initial configuration can violate the constraint slightly. The joint translation is zero when the local anchor points coincide in world space. Using local anchors and a local axis helps when saving and loading a game.
Implementations§
Trait Implementations§
Source§impl AsRef<b2JointDef> for b2WheelJointDef
impl AsRef<b2JointDef> for b2WheelJointDef
Source§fn as_ref(self: &b2WheelJointDef) -> &b2JointDef
fn as_ref(self: &b2WheelJointDef) -> &b2JointDef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl CopyNew for b2WheelJointDef
impl CopyNew for b2WheelJointDef
Source§unsafe fn copy_new(
other: &b2WheelJointDef,
this: Pin<&mut MaybeUninit<b2WheelJointDef>>,
)
unsafe fn copy_new( other: &b2WheelJointDef, this: Pin<&mut MaybeUninit<b2WheelJointDef>>, )
Synthesized copy constructor.
Source§impl Drop for b2WheelJointDef
impl Drop for b2WheelJointDef
Source§fn drop(self: &mut b2WheelJointDef)
fn drop(self: &mut b2WheelJointDef)
Synthesized destructor.
Source§impl ExternType for b2WheelJointDef
impl ExternType for b2WheelJointDef
Source§impl MakeCppStorage for b2WheelJointDef
impl MakeCppStorage for b2WheelJointDef
Source§unsafe fn allocate_uninitialized_cpp_storage() -> *mut b2WheelJointDef
unsafe fn allocate_uninitialized_cpp_storage() -> *mut b2WheelJointDef
Allocates heap space for this type in C++ and return a pointer
to that space, but do not initialize that space (i.e. do not
yet call a constructor). Read more
Source§unsafe fn free_uninitialized_cpp_storage(arg0: *mut b2WheelJointDef)
unsafe fn free_uninitialized_cpp_storage(arg0: *mut b2WheelJointDef)
Frees a C++ allocation which has not yet
had a constructor called. Read more
Source§impl MoveNew for b2WheelJointDef
impl MoveNew for b2WheelJointDef
Source§unsafe fn move_new(
other: Pin<MoveRef<'_, b2WheelJointDef>>,
this: Pin<&mut MaybeUninit<b2WheelJointDef>>,
)
unsafe fn move_new( other: Pin<MoveRef<'_, b2WheelJointDef>>, this: Pin<&mut MaybeUninit<b2WheelJointDef>>, )
Synthesized move constructor.
impl UniquePtrTarget for b2WheelJointDef
impl VectorElement for b2WheelJointDef
impl WeakPtrTarget for b2WheelJointDef
Auto Trait Implementations§
impl Freeze for b2WheelJointDef
impl RefUnwindSafe for b2WheelJointDef
impl !Send for b2WheelJointDef
impl !Sync for b2WheelJointDef
impl !Unpin for b2WheelJointDef
impl UnwindSafe for b2WheelJointDef
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