pub struct EmitterConfig {Show 19 fields
pub shape: EmitterShape,
pub spawn_mode: SpawnMode,
pub spawn_curve: SpawnCurve,
pub velocity_mode: VelocityMode,
pub color_over_life: ColorOverLifetime,
pub size_over_life: SizeOverLifetime,
pub lifetime_min: f32,
pub lifetime_max: f32,
pub size_min: f32,
pub size_max: f32,
pub mass_min: f32,
pub mass_max: f32,
pub angular_vel_min: f32,
pub angular_vel_max: f32,
pub max_particles: usize,
pub tag: ParticleTag,
pub inherit_velocity: f32,
pub world_space: bool,
pub simulation_speed: f32,
}Expand description
Full configuration for a particle emitter.
Fields§
§shape: EmitterShape§spawn_mode: SpawnMode§spawn_curve: SpawnCurve§velocity_mode: VelocityMode§color_over_life: ColorOverLifetime§size_over_life: SizeOverLifetime§lifetime_min: f32§lifetime_max: f32§size_min: f32§size_max: f32§mass_min: f32§mass_max: f32§angular_vel_min: f32§angular_vel_max: f32§max_particles: usize§tag: ParticleTag§inherit_velocity: f32§world_space: bool§simulation_speed: f32Trait Implementations§
Source§impl Clone for EmitterConfig
impl Clone for EmitterConfig
Source§fn clone(&self) -> EmitterConfig
fn clone(&self) -> EmitterConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EmitterConfig
impl Debug for EmitterConfig
Auto Trait Implementations§
impl Freeze for EmitterConfig
impl RefUnwindSafe for EmitterConfig
impl Send for EmitterConfig
impl Sync for EmitterConfig
impl Unpin for EmitterConfig
impl UnsafeUnpin for EmitterConfig
impl UnwindSafe for EmitterConfig
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> 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.