pub struct FluidParamsPanel {Show 17 fields
pub kernel_radius: f32,
pub rest_density: f32,
pub viscosity: f32,
pub pressure_stiffness: f32,
pub surface_tension: f32,
pub gravity_scale: f32,
pub time_scale: f32,
pub max_particles: usize,
pub particle_mass: f32,
pub domain_size: Vec3,
pub domain_offset: Vec3,
pub boundary_restitution: f32,
pub display_radius_scale: f32,
pub color_by_velocity: bool,
pub color_low_vel: Vec4,
pub color_high_vel: Vec4,
pub color_velocity_scale: f32,
}Fields§
§kernel_radius: f32§rest_density: f32§viscosity: f32§pressure_stiffness: f32§surface_tension: f32§gravity_scale: f32§time_scale: f32§max_particles: usize§particle_mass: f32§domain_size: Vec3§domain_offset: Vec3§boundary_restitution: f32§display_radius_scale: f32§color_by_velocity: bool§color_low_vel: Vec4§color_high_vel: Vec4§color_velocity_scale: f32Implementations§
Source§impl FluidParamsPanel
impl FluidParamsPanel
pub fn apply_to_sim(&self, sim: &mut FluidSimulation)
pub fn particle_color(&self, velocity: Vec3) -> Vec4
Trait Implementations§
Source§impl Clone for FluidParamsPanel
impl Clone for FluidParamsPanel
Source§impl Debug for FluidParamsPanel
impl Debug for FluidParamsPanel
Auto Trait Implementations§
impl Freeze for FluidParamsPanel
impl RefUnwindSafe for FluidParamsPanel
impl Send for FluidParamsPanel
impl Sync for FluidParamsPanel
impl Unpin for FluidParamsPanel
impl UnsafeUnpin for FluidParamsPanel
impl UnwindSafe for FluidParamsPanel
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.