pub struct SizeOverLifetime {
pub start: f64,
pub end: f64,
}Expand description
Linear nonnegative size multiplier over normalized lifetime.
Fields§
§start: f64Birth multiplier.
end: f64End-of-life multiplier.
Trait Implementations§
Source§impl Clone for SizeOverLifetime
impl Clone for SizeOverLifetime
impl Copy for SizeOverLifetime
Source§impl Debug for SizeOverLifetime
impl Debug for SizeOverLifetime
Source§impl ParticleModifier for SizeOverLifetime
impl ParticleModifier for SizeOverLifetime
Source§fn apply(
&self,
particle: &mut Particle,
_: f32,
_: Time,
_: &mut Random,
) -> Result<(), ValidationError>
fn apply( &self, particle: &mut Particle, _: f32, _: Time, _: &mut Random, ) -> Result<(), ValidationError>
Updates one live particle; index and canonical age remain engine-owned.
Source§fn resets_color(&self) -> bool
fn resets_color(&self) -> bool
Requests birth-color restoration before the ordered modifier chain.
Multiplicative lifetime energy curves use this to avoid frame-count accumulation.
Source§fn apply_event(
&self,
particle: &mut Particle,
step_seconds: f32,
time: Time,
random: &mut Random,
) -> Result<bool, ValidationError>
fn apply_event( &self, particle: &mut Particle, step_seconds: f32, time: Time, random: &mut Random, ) -> Result<bool, ValidationError>
Optional predicted-step collision response, preserving the original callback API.
Auto Trait Implementations§
impl Forget for SizeOverLifetime
impl Freeze for SizeOverLifetime
impl RefUnwindSafe for SizeOverLifetime
impl Send for SizeOverLifetime
impl Sync for SizeOverLifetime
impl Unpin for SizeOverLifetime
impl UnsafeUnpin for SizeOverLifetime
impl UnwindSafe for SizeOverLifetime
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