Struct BallMotorJoint
#[repr(C)]pub struct BallMotorJoint {
pub body_a: u32,
pub body_b: u32,
pub local_anchor_a: [f32; 3],
pub local_anchor_b: [f32; 3],
pub compliance: f32,
}Expand description
Spherical ball-and-socket joint locking two local anchor points in world space.
Fields§
§body_a: u32§body_b: u32§local_anchor_a: [f32; 3]§local_anchor_b: [f32; 3]§compliance: f32XPBD compliance $\alpha \ge 0$ ($0.0$ = infinitely stiff).
Trait Implementations§
§impl Clone for BallMotorJoint
impl Clone for BallMotorJoint
§fn clone(&self) -> BallMotorJoint
fn clone(&self) -> BallMotorJoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BallMotorJoint
§impl Debug for BallMotorJoint
impl Debug for BallMotorJoint
§impl PartialEq for BallMotorJoint
impl PartialEq for BallMotorJoint
impl StructuralPartialEq for BallMotorJoint
Auto Trait Implementations§
impl Freeze for BallMotorJoint
impl RefUnwindSafe for BallMotorJoint
impl Send for BallMotorJoint
impl Sync for BallMotorJoint
impl Unpin for BallMotorJoint
impl UnsafeUnpin for BallMotorJoint
impl UnwindSafe for BallMotorJoint
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