pub struct SpringChain {
pub name: Option<String>,
pub center_node: Option<u32>,
pub collider_groups: Vec<usize>,
pub joints: Vec<SpringJoint>,
}Expand description
A single spring: a kinematic chain of joints plus the colliders it reacts to and an optional center node whose space inertia is evaluated in.
Fields§
§name: Option<String>Optional author-facing spring name.
center_node: Option<u32>Optional node whose moving space defines inertia cancellation.
collider_groups: Vec<usize>Indices into SpringBone::collider_groups.
joints: Vec<SpringJoint>Consecutive joints from the root toward the chain tip.
Trait Implementations§
Source§impl Clone for SpringChain
impl Clone for SpringChain
Auto Trait Implementations§
impl Freeze for SpringChain
impl RefUnwindSafe for SpringChain
impl Send for SpringChain
impl Sync for SpringChain
impl Unpin for SpringChain
impl UnsafeUnpin for SpringChain
impl UnwindSafe for SpringChain
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