pub struct b2WeldJoint { /* private fields */ }Expand description
A weld joint essentially glues two bodies together. A weld joint may distort somewhat because the island constraint solver is approximate.
Implementations§
Source§impl b2WeldJoint
impl b2WeldJoint
Sourcepub fn GetLocalAnchorA(self: &b2WeldJoint) -> &b2Vec2
pub fn GetLocalAnchorA(self: &b2WeldJoint) -> &b2Vec2
The local anchor point relative to bodyA’s origin.
Sourcepub fn GetLocalAnchorB(self: &b2WeldJoint) -> &b2Vec2
pub fn GetLocalAnchorB(self: &b2WeldJoint) -> &b2Vec2
The local anchor point relative to bodyB’s origin.
Sourcepub fn GetReferenceAngle(self: &b2WeldJoint) -> f32
pub fn GetReferenceAngle(self: &b2WeldJoint) -> f32
Get the reference angle.
Sourcepub fn SetStiffness(self: Pin<&mut b2WeldJoint>, hz: f32)
pub fn SetStiffness(self: Pin<&mut b2WeldJoint>, hz: f32)
Set/get stiffness in N*m
pub fn GetStiffness(self: &b2WeldJoint) -> f32
Sourcepub fn SetDamping(self: Pin<&mut b2WeldJoint>, damping: f32)
pub fn SetDamping(self: Pin<&mut b2WeldJoint>, damping: f32)
Set/get damping in Nms
pub fn GetDamping(self: &b2WeldJoint) -> f32
pub fn GetAnchorA(self: &b2WeldJoint) -> b2Vec2
pub fn GetAnchorB(self: &b2WeldJoint) -> b2Vec2
pub fn GetReactionForce(self: &b2WeldJoint, inv_dt: f32) -> b2Vec2
pub fn GetReactionTorque(self: &b2WeldJoint, inv_dt: f32) -> f32
Sourcepub fn Dump(self: Pin<&mut b2WeldJoint>)
pub fn Dump(self: Pin<&mut b2WeldJoint>)
Dump to b2Log
Trait Implementations§
Source§impl AsRef<b2Joint> for b2WeldJoint
impl AsRef<b2Joint> for b2WeldJoint
Source§fn as_ref(self: &b2WeldJoint) -> &b2Joint
fn as_ref(self: &b2WeldJoint) -> &b2Joint
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl CopyNew for b2WeldJoint
impl CopyNew for b2WeldJoint
Source§unsafe fn copy_new(
other: &b2WeldJoint,
this: Pin<&mut MaybeUninit<b2WeldJoint>>,
)
unsafe fn copy_new( other: &b2WeldJoint, this: Pin<&mut MaybeUninit<b2WeldJoint>>, )
Synthesized copy constructor.
Source§impl Drop for b2WeldJoint
impl Drop for b2WeldJoint
Source§fn drop(self: &mut b2WeldJoint)
fn drop(self: &mut b2WeldJoint)
Synthesized destructor.
Source§impl ExternType for b2WeldJoint
impl ExternType for b2WeldJoint
Source§impl MakeCppStorage for b2WeldJoint
impl MakeCppStorage for b2WeldJoint
Source§unsafe fn allocate_uninitialized_cpp_storage() -> *mut b2WeldJoint
unsafe fn allocate_uninitialized_cpp_storage() -> *mut b2WeldJoint
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 b2WeldJoint)
unsafe fn free_uninitialized_cpp_storage(arg0: *mut b2WeldJoint)
Frees a C++ allocation which has not yet
had a constructor called. Read more
impl UniquePtrTarget for b2WeldJoint
impl WeakPtrTarget for b2WeldJoint
Auto Trait Implementations§
impl !Send for b2WeldJoint
impl !Sync for b2WeldJoint
impl !Unpin for b2WeldJoint
impl Freeze for b2WeldJoint
impl RefUnwindSafe for b2WeldJoint
impl UnsafeUnpin for b2WeldJoint
impl UnwindSafe for b2WeldJoint
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