Struct VbdVertex
pub struct VbdVertex {
pub pos: [f64; 3],
pub prev_pos: [f64; 3],
pub vel: [f64; 3],
pub mass: f64,
pub color: u8,
pub pinned: bool,
pub fascia_active: bool,
pub fascia_origin_m: [f64; 3],
pub fascia_normal: [f64; 3],
pub fascia_friction_mu: f64,
}Expand description
Vertex state for graph-colored Vertex Block Descent soft-tissue simulation.
Fields§
§pos: [f64; 3]§prev_pos: [f64; 3]§vel: [f64; 3]§mass: f64§color: u8§pinned: bool§fascia_active: boolOptional fascia sliding plane: signed_dist = dot(pos - fascia_origin, fascia_normal).
fascia_origin_m: [f64; 3]§fascia_normal: [f64; 3]§fascia_friction_mu: f64Trait Implementations§
impl Copy for VbdVertex
impl StructuralPartialEq for VbdVertex
Auto Trait Implementations§
impl Freeze for VbdVertex
impl RefUnwindSafe for VbdVertex
impl Send for VbdVertex
impl Sync for VbdVertex
impl Unpin for VbdVertex
impl UnsafeUnpin for VbdVertex
impl UnwindSafe for VbdVertex
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