pub enum Falloff {
None,
Linear,
InverseSquare,
Exponential(f32),
Gaussian(f32),
SmoothStep(f32),
}Expand description
How field strength decreases with distance.
Variants§
None
Linear
InverseSquare
Exponential(f32)
Gaussian(f32)
SmoothStep(f32)
Smooth step: linear to 1.0, then smoothstep to 0.
Trait Implementations§
impl Copy for Falloff
impl StructuralPartialEq for Falloff
Auto Trait Implementations§
impl Freeze for Falloff
impl RefUnwindSafe for Falloff
impl Send for Falloff
impl Sync for Falloff
impl Unpin for Falloff
impl UnsafeUnpin for Falloff
impl UnwindSafe for Falloff
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