pub struct Vortex {
pub center: Point,
pub strength: f64,
}Expand description
Tangential acceleration about a softened point vortex.
Fields§
§center: PointVortex center.
strength: f64Tangential acceleration scale.
Trait Implementations§
impl Copy for Vortex
Source§impl ParticleModifier for Vortex
impl ParticleModifier for Vortex
Source§fn apply(
&self,
particle: &mut Particle,
step: f32,
_: Time,
_: &mut Random,
) -> Result<(), ValidationError>
fn apply( &self, particle: &mut Particle, step: 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 Vortex
impl Freeze for Vortex
impl RefUnwindSafe for Vortex
impl Send for Vortex
impl Sync for Vortex
impl Unpin for Vortex
impl UnsafeUnpin for Vortex
impl UnwindSafe for Vortex
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