pub struct ClothParamsPanel {Show 22 fields
pub grid_width: usize,
pub grid_height: usize,
pub cell_size: f32,
pub total_mass: f32,
pub stretch_stiffness: f32,
pub shear_stiffness: f32,
pub bend_stiffness: f32,
pub gravity_scale: f32,
pub wind_speed: f32,
pub wind_direction: Vec3,
pub wind_turbulence: f32,
pub drag: f32,
pub self_collision: bool,
pub tearing: bool,
pub tear_threshold: f32,
pub iterations: u32,
pub thickness: f32,
pub visualize_springs: bool,
pub spring_color_stretch: Vec4,
pub spring_color_shear: Vec4,
pub spring_color_bend: Vec4,
pub visualize_normals: bool,
}Fields§
§grid_width: usize§grid_height: usize§cell_size: f32§total_mass: f32§stretch_stiffness: f32§shear_stiffness: f32§bend_stiffness: f32§gravity_scale: f32§wind_speed: f32§wind_direction: Vec3§wind_turbulence: f32§drag: f32§self_collision: bool§tearing: bool§tear_threshold: f32§iterations: u32§thickness: f32§visualize_springs: bool§spring_color_stretch: Vec4§spring_color_shear: Vec4§spring_color_bend: Vec4§visualize_normals: boolImplementations§
Source§impl ClothParamsPanel
impl ClothParamsPanel
pub fn apply_to_sim(&self, sim: &mut ClothSimulation)
Trait Implementations§
Source§impl Clone for ClothParamsPanel
impl Clone for ClothParamsPanel
Source§impl Debug for ClothParamsPanel
impl Debug for ClothParamsPanel
Auto Trait Implementations§
impl Freeze for ClothParamsPanel
impl RefUnwindSafe for ClothParamsPanel
impl Send for ClothParamsPanel
impl Sync for ClothParamsPanel
impl Unpin for ClothParamsPanel
impl UnsafeUnpin for ClothParamsPanel
impl UnwindSafe for ClothParamsPanel
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.