pub enum ForceFalloff {
Constant,
Linear,
InverseSquare,
Curve(ParticleCurve),
}Expand description
Spatial attenuation with no singular denominator at a force center.
Variants§
Constant
Constant strength inside the authored radius.
Linear
Linear falloff to zero at the radius.
InverseSquare
Softened inverse-square distance.
Curve(ParticleCurve)
Explicit distance-to-strength curve.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ForceFalloff
impl !UnwindSafe for ForceFalloff
impl Forget for ForceFalloff
impl Freeze for ForceFalloff
impl Move for ForceFalloff
impl Send for ForceFalloff
impl Sync for ForceFalloff
impl Unpin for ForceFalloff
impl UnsafeUnpin for ForceFalloff
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