pub struct RopeConfig {
pub iterations: usize,
pub substeps: usize,
pub gravity: Vec3Fix,
pub damping: Fix128,
pub compliance: Fix128,
pub sdf_friction: Fix128,
}Expand description
Rope simulation configuration
Fields§
§iterations: usizeNumber of solver iterations per step
substeps: usizeNumber of substeps per step
gravity: Vec3FixGravity vector
damping: Fix128Velocity retention per frame (step() call), applied once per frame since 1.2.0
compliance: Fix128Distance constraint compliance (0 = rigid)
sdf_friction: Fix128Coulomb friction coefficient against SDF surfaces: a contact takes at
most sdf_friction times its normal velocity change off the tangential
speed (independent of the substep count)
Trait Implementations§
Source§impl Clone for RopeConfig
impl Clone for RopeConfig
impl Copy for RopeConfig
Source§impl Debug for RopeConfig
impl Debug for RopeConfig
Source§impl Default for RopeConfig
impl Default for RopeConfig
impl Eq for RopeConfig
Source§impl PartialEq for RopeConfig
impl PartialEq for RopeConfig
impl StructuralPartialEq for RopeConfig
Auto Trait Implementations§
impl Freeze for RopeConfig
impl RefUnwindSafe for RopeConfig
impl Send for RopeConfig
impl Sync for RopeConfig
impl Unpin for RopeConfig
impl UnsafeUnpin for RopeConfig
impl UnwindSafe for RopeConfig
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