pub struct b2PulleyJointDef { /* private fields */ }Expand description
Pulley joint definition. This requires two ground anchors, two dynamic body anchor points, and a pulley ratio.
Implementations§
Source§impl b2PulleyJointDef
impl b2PulleyJointDef
Sourcepub unsafe fn Initialize(
self: Pin<&mut b2PulleyJointDef>,
bodyA: *mut b2Body,
bodyB: *mut b2Body,
groundAnchorA: &b2Vec2,
groundAnchorB: &b2Vec2,
anchorA: &b2Vec2,
anchorB: &b2Vec2,
ratio: f32,
)
pub unsafe fn Initialize( self: Pin<&mut b2PulleyJointDef>, bodyA: *mut b2Body, bodyB: *mut b2Body, groundAnchorA: &b2Vec2, groundAnchorB: &b2Vec2, anchorA: &b2Vec2, anchorB: &b2Vec2, ratio: f32, )
Initialize the bodies, anchors, lengths, max lengths, and ratio using the world anchors.
pub fn new() -> impl New<Output = Self>
Trait Implementations§
Source§impl AsRef<b2JointDef> for b2PulleyJointDef
impl AsRef<b2JointDef> for b2PulleyJointDef
Source§fn as_ref(self: &b2PulleyJointDef) -> &b2JointDef
fn as_ref(self: &b2PulleyJointDef) -> &b2JointDef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl CopyNew for b2PulleyJointDef
impl CopyNew for b2PulleyJointDef
Source§unsafe fn copy_new(
other: &b2PulleyJointDef,
this: Pin<&mut MaybeUninit<b2PulleyJointDef>>,
)
unsafe fn copy_new( other: &b2PulleyJointDef, this: Pin<&mut MaybeUninit<b2PulleyJointDef>>, )
Synthesized copy constructor.
Source§impl Drop for b2PulleyJointDef
impl Drop for b2PulleyJointDef
Source§fn drop(self: &mut b2PulleyJointDef)
fn drop(self: &mut b2PulleyJointDef)
Synthesized destructor.
Source§impl ExternType for b2PulleyJointDef
impl ExternType for b2PulleyJointDef
Source§impl MakeCppStorage for b2PulleyJointDef
impl MakeCppStorage for b2PulleyJointDef
Source§unsafe fn allocate_uninitialized_cpp_storage() -> *mut b2PulleyJointDef
unsafe fn allocate_uninitialized_cpp_storage() -> *mut b2PulleyJointDef
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 b2PulleyJointDef)
unsafe fn free_uninitialized_cpp_storage(arg0: *mut b2PulleyJointDef)
Frees a C++ allocation which has not yet
had a constructor called. Read more
Source§impl MoveNew for b2PulleyJointDef
impl MoveNew for b2PulleyJointDef
Source§unsafe fn move_new(
other: Pin<MoveRef<'_, b2PulleyJointDef>>,
this: Pin<&mut MaybeUninit<b2PulleyJointDef>>,
)
unsafe fn move_new( other: Pin<MoveRef<'_, b2PulleyJointDef>>, this: Pin<&mut MaybeUninit<b2PulleyJointDef>>, )
Synthesized move constructor.
impl UniquePtrTarget for b2PulleyJointDef
impl VectorElement for b2PulleyJointDef
impl WeakPtrTarget for b2PulleyJointDef
Auto Trait Implementations§
impl !Send for b2PulleyJointDef
impl !Sync for b2PulleyJointDef
impl !Unpin for b2PulleyJointDef
impl Freeze for b2PulleyJointDef
impl RefUnwindSafe for b2PulleyJointDef
impl UnsafeUnpin for b2PulleyJointDef
impl UnwindSafe for b2PulleyJointDef
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