pub struct MathParticle {Show 21 fields
pub glyph: Glyph,
pub behavior: MathFunction,
pub trail: bool,
pub trail_length: u8,
pub trail_decay: f32,
pub interaction: ParticleInteraction,
pub origin: Vec3,
pub age: f32,
pub lifetime: f32,
pub velocity: Vec3,
pub acceleration: Vec3,
pub drag: f32,
pub spin: f32,
pub scale: f32,
pub scale_over_life: Option<ScaleCurve>,
pub color_over_life: Option<ColorGradient>,
pub size_over_life: Option<FloatCurve>,
pub group: Option<u32>,
pub sub_emitter: Option<Box<SubEmitterRef>>,
pub flags: ParticleFlags,
pub user_data: [f32; 4],
}Expand description
An individual math-driven particle.
Fields§
§glyph: Glyph§behavior: MathFunction§trail: bool§trail_length: u8§trail_decay: f32§interaction: ParticleInteraction§origin: Vec3Origin position (behavior is evaluated relative to this).
age: f32§lifetime: f32§velocity: Vec3§acceleration: Vec3§drag: f32§spin: f32§scale: f32§scale_over_life: Option<ScaleCurve>§color_over_life: Option<ColorGradient>§size_over_life: Option<FloatCurve>§group: Option<u32>§sub_emitter: Option<Box<SubEmitterRef>>§flags: ParticleFlags§user_data: [f32; 4]Implementations§
Trait Implementations§
Source§impl Clone for MathParticle
impl Clone for MathParticle
Source§fn clone(&self) -> MathParticle
fn clone(&self) -> MathParticle
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 moreAuto Trait Implementations§
impl Freeze for MathParticle
impl RefUnwindSafe for MathParticle
impl Send for MathParticle
impl Sync for MathParticle
impl Unpin for MathParticle
impl UnsafeUnpin for MathParticle
impl UnwindSafe for MathParticle
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.