pub enum JointKind {
Fixed,
Hinge {
axis1: Vec3,
axis2: Vec3,
},
Distance {
length: f32,
},
Spring {
length: f32,
stiffness: f32,
damping: f32,
},
}Variants§
Fixed
Hinge
Distance
Spring
Force = -stiffness * extension - damping * relative speed, solved implicitly.
Trait Implementations§
impl Copy for JointKind
impl StructuralPartialEq for JointKind
Auto Trait Implementations§
impl Freeze for JointKind
impl RefUnwindSafe for JointKind
impl Send for JointKind
impl Sync for JointKind
impl Unpin for JointKind
impl UnwindSafe for JointKind
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