pub struct SoftNode {
pub position: Vec2,
pub velocity: Vec2,
pub force: Vec2,
pub mass: f32,
pub inv_mass: f32,
pub pinned: bool,
pub tag: u32,
}Expand description
A point mass in the soft body network.
Fields§
§position: Vec2§velocity: Vec2§force: Vec2Accumulated force for the current integration step.
mass: f32§inv_mass: f32§pinned: boolWhether this node is pinned (fixed in space).
tag: u32Optional user tag.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SoftNode
impl RefUnwindSafe for SoftNode
impl Send for SoftNode
impl Sync for SoftNode
impl Unpin for SoftNode
impl UnsafeUnpin for SoftNode
impl UnwindSafe for SoftNode
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