pub struct SpringJoint {
pub node_index: u32,
pub hit_radius: f32,
pub stiffness: f32,
pub gravity_power: f32,
pub gravity_dir: Vec3,
pub drag_force: f32,
}Expand description
Physics parameters attached to one node in a spring chain.
Each node except the final tail marker is simulated against the next node in the chain.
Fields§
§node_index: u32Raw glTF index of the simulated joint node.
hit_radius: f32Radius of the collision sphere around the joint, in meters.
stiffness: f32Rest-direction restoring force.
gravity_power: f32Magnitude of acceleration along Self::gravity_dir.
gravity_dir: Vec3Normalized gravity direction applied in world space.
drag_force: f32Fraction of previous-frame motion removed by drag.
Trait Implementations§
Source§impl Clone for SpringJoint
impl Clone for SpringJoint
Auto Trait Implementations§
impl Freeze for SpringJoint
impl RefUnwindSafe for SpringJoint
impl Send for SpringJoint
impl Sync for SpringJoint
impl Unpin for SpringJoint
impl UnsafeUnpin for SpringJoint
impl UnwindSafe for SpringJoint
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