pub struct RadialForce {
pub center: Point,
pub strength: f32,
pub radius: f32,
pub falloff: ForceFalloff,
}Expand description
Radius-bounded attraction/repulsion using an explicit attenuation policy.
Fields§
§center: PointForce center.
strength: f32Signed acceleration scale.
radius: f32Finite positive influence radius.
falloff: ForceFalloffSpatial attenuation.
Trait Implementations§
Source§impl Clone for RadialForce
impl Clone for RadialForce
Source§impl ParticleModifier for RadialForce
impl ParticleModifier for RadialForce
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 !RefUnwindSafe for RadialForce
impl !UnwindSafe for RadialForce
impl Forget for RadialForce
impl Freeze for RadialForce
impl Send for RadialForce
impl Sync for RadialForce
impl Unpin for RadialForce
impl UnsafeUnpin for RadialForce
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