pub struct DeformableConfig {
pub iterations: usize,
pub substeps: usize,
pub gravity: Vec3Fix,
pub damping: Fix128,
pub volume_compliance: Fix128,
pub edge_compliance: Fix128,
pub shape_stiffness: Fix128,
pub sdf_friction: Fix128,
}Expand description
Deformable body configuration
Fields§
§iterations: usizeSolver iterations
substeps: usizeNumber of substeps
gravity: Vec3FixGravity
damping: Fix128Velocity retention per frame (step() call), applied once per frame since 1.2.0
volume_compliance: Fix128Volume preservation compliance (0 = rigid volume)
edge_compliance: Fix128Edge stretch compliance
shape_stiffness: Fix128Shape matching stiffness (0..1, 1 = rigid)
sdf_friction: Fix128SDF collision friction
Trait Implementations§
Source§impl Clone for DeformableConfig
impl Clone for DeformableConfig
impl Copy for DeformableConfig
Source§impl Debug for DeformableConfig
impl Debug for DeformableConfig
Source§impl Default for DeformableConfig
impl Default for DeformableConfig
impl Eq for DeformableConfig
Source§impl PartialEq for DeformableConfig
impl PartialEq for DeformableConfig
impl StructuralPartialEq for DeformableConfig
Auto Trait Implementations§
impl Freeze for DeformableConfig
impl RefUnwindSafe for DeformableConfig
impl Send for DeformableConfig
impl Sync for DeformableConfig
impl Unpin for DeformableConfig
impl UnsafeUnpin for DeformableConfig
impl UnwindSafe for DeformableConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more