Enum ambient_api::physics::FalloffRadius
source · pub enum FalloffRadius {
None,
FalloffToZeroAt(f32),
}
Available on crate feature
server
only.Expand description
Whether or not to apply a falloff to the strength of add_radial_impulse.
Variants§
None
No falloff. The impulse will be of equal strength for all entities.
FalloffToZeroAt(f32)
Applies a falloff to the strength of the impulse, so that it drops out the further out the object is,
until it reaches a strength of 0 at falloff_radius
.
Trait Implementations§
source§impl Clone for FalloffRadius
impl Clone for FalloffRadius
source§fn clone(&self) -> FalloffRadius
fn clone(&self) -> FalloffRadius
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FalloffRadius
impl Debug for FalloffRadius
source§impl Default for FalloffRadius
impl Default for FalloffRadius
source§fn default() -> FalloffRadius
fn default() -> FalloffRadius
Returns the “default value” for a type. Read more
source§impl PartialEq for FalloffRadius
impl PartialEq for FalloffRadius
source§fn eq(&self, other: &FalloffRadius) -> bool
fn eq(&self, other: &FalloffRadius) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for FalloffRadius
impl StructuralPartialEq for FalloffRadius
Auto Trait Implementations§
impl RefUnwindSafe for FalloffRadius
impl Send for FalloffRadius
impl Sync for FalloffRadius
impl Unpin for FalloffRadius
impl UnwindSafe for FalloffRadius
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
source§impl<T> Downcast for T
impl<T> Downcast for T
source§impl<T> ElementComponentName for T
impl<T> ElementComponentName for T
source§fn element_component_name(&self) -> &'static str
fn element_component_name(&self) -> &'static str
Returns the name of the type implementing ElementComponent.