pub struct b2PrismaticJointDef { /* private fields */ }Expand description
Prismatic 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 b2PrismaticJointDef
impl AsRef<b2JointDef> for b2PrismaticJointDef
Source§fn as_ref(self: &b2PrismaticJointDef) -> &b2JointDef
fn as_ref(self: &b2PrismaticJointDef) -> &b2JointDef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl CopyNew for b2PrismaticJointDef
impl CopyNew for b2PrismaticJointDef
Source§unsafe fn copy_new(
other: &b2PrismaticJointDef,
this: Pin<&mut MaybeUninit<b2PrismaticJointDef>>,
)
unsafe fn copy_new( other: &b2PrismaticJointDef, this: Pin<&mut MaybeUninit<b2PrismaticJointDef>>, )
Synthesized copy constructor.
Source§impl Drop for b2PrismaticJointDef
impl Drop for b2PrismaticJointDef
Source§fn drop(self: &mut b2PrismaticJointDef)
fn drop(self: &mut b2PrismaticJointDef)
Synthesized destructor.
Source§impl ExternType for b2PrismaticJointDef
impl ExternType for b2PrismaticJointDef
Source§impl MakeCppStorage for b2PrismaticJointDef
impl MakeCppStorage for b2PrismaticJointDef
Source§unsafe fn allocate_uninitialized_cpp_storage() -> *mut b2PrismaticJointDef
unsafe fn allocate_uninitialized_cpp_storage() -> *mut b2PrismaticJointDef
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 b2PrismaticJointDef)
unsafe fn free_uninitialized_cpp_storage(arg0: *mut b2PrismaticJointDef)
Frees a C++ allocation which has not yet
had a constructor called. Read more
Source§impl MoveNew for b2PrismaticJointDef
impl MoveNew for b2PrismaticJointDef
Source§unsafe fn move_new(
other: Pin<MoveRef<'_, b2PrismaticJointDef>>,
this: Pin<&mut MaybeUninit<b2PrismaticJointDef>>,
)
unsafe fn move_new( other: Pin<MoveRef<'_, b2PrismaticJointDef>>, this: Pin<&mut MaybeUninit<b2PrismaticJointDef>>, )
Synthesized move constructor.
impl UniquePtrTarget for b2PrismaticJointDef
impl VectorElement for b2PrismaticJointDef
impl WeakPtrTarget for b2PrismaticJointDef
Auto Trait Implementations§
impl !Send for b2PrismaticJointDef
impl !Sync for b2PrismaticJointDef
impl !Unpin for b2PrismaticJointDef
impl Freeze for b2PrismaticJointDef
impl RefUnwindSafe for b2PrismaticJointDef
impl UnsafeUnpin for b2PrismaticJointDef
impl UnwindSafe for b2PrismaticJointDef
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