Struct libliquidfun_sys::box2d::ffi::b2DistanceJointDef
source · #[repr(C, align(8))]pub struct b2DistanceJointDef { /* private fields */ }Expand description
Distance joint definition. This requires defining an anchor point on both bodies and the non-zero distance of the distance joint. The definition uses local anchor points so that the initial configuration can violate the constraint slightly. This helps when saving and loading a game.
Implementations§
source§impl b2DistanceJointDef
impl b2DistanceJointDef
sourcepub unsafe fn Initialize(
self: Pin<&mut b2DistanceJointDef>,
bodyA: *mut b2Body,
bodyB: *mut b2Body,
anchorA: &b2Vec2,
anchorB: &b2Vec2
)
pub unsafe fn Initialize( self: Pin<&mut b2DistanceJointDef>, bodyA: *mut b2Body, bodyB: *mut b2Body, anchorA: &b2Vec2, anchorB: &b2Vec2 )
Initialize the bodies, anchors, and rest length using world space anchors. The minimum and maximum lengths are set to the rest length.
pub fn new() -> impl New<Output = Self>
Trait Implementations§
source§impl AsRef<b2JointDef> for b2DistanceJointDef
impl AsRef<b2JointDef> for b2DistanceJointDef
source§fn as_ref(self: &b2DistanceJointDef) -> &b2JointDef
fn as_ref(self: &b2DistanceJointDef) -> &b2JointDef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl CopyNew for b2DistanceJointDef
impl CopyNew for b2DistanceJointDef
source§unsafe fn copy_new(
other: &b2DistanceJointDef,
this: Pin<&mut MaybeUninit<b2DistanceJointDef>>
)
unsafe fn copy_new( other: &b2DistanceJointDef, this: Pin<&mut MaybeUninit<b2DistanceJointDef>> )
Synthesized copy constructor.
source§impl Drop for b2DistanceJointDef
impl Drop for b2DistanceJointDef
source§fn drop(self: &mut b2DistanceJointDef)
fn drop(self: &mut b2DistanceJointDef)
Synthesized destructor.
source§impl ExternType for b2DistanceJointDef
impl ExternType for b2DistanceJointDef
source§impl MakeCppStorage for b2DistanceJointDef
impl MakeCppStorage for b2DistanceJointDef
source§unsafe fn allocate_uninitialized_cpp_storage() -> *mut b2DistanceJointDef
unsafe fn allocate_uninitialized_cpp_storage() -> *mut b2DistanceJointDef
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 b2DistanceJointDef)
unsafe fn free_uninitialized_cpp_storage(arg0: *mut b2DistanceJointDef)
Frees a C++ allocation which has not yet
had a constructor called. Read more
source§impl MoveNew for b2DistanceJointDef
impl MoveNew for b2DistanceJointDef
source§unsafe fn move_new(
other: Pin<MoveRef<'_, b2DistanceJointDef>>,
this: Pin<&mut MaybeUninit<b2DistanceJointDef>>
)
unsafe fn move_new( other: Pin<MoveRef<'_, b2DistanceJointDef>>, this: Pin<&mut MaybeUninit<b2DistanceJointDef>> )
Synthesized move constructor.
impl UniquePtrTarget for b2DistanceJointDef
impl VectorElement for b2DistanceJointDef
impl WeakPtrTarget for b2DistanceJointDef
Auto Trait Implementations§
impl RefUnwindSafe for b2DistanceJointDef
impl !Send for b2DistanceJointDef
impl !Sync for b2DistanceJointDef
impl !Unpin for b2DistanceJointDef
impl UnwindSafe for b2DistanceJointDef
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