pub enum ForceBlendMode {
Additive,
Override,
Multiply,
Average,
}Expand description
Blend mode when combining multiple force fields at the same location.
Variants§
Additive
Sum all forces (default physical behaviour).
Override
Use the strongest single force.
Multiply
Multiply forces together (chaining effect).
Average
Average all forces.
Trait Implementations§
Source§impl Clone for ForceBlendMode
impl Clone for ForceBlendMode
Source§fn clone(&self) -> ForceBlendMode
fn clone(&self) -> ForceBlendMode
Returns a duplicate 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 ForceBlendMode
impl Debug for ForceBlendMode
Source§impl PartialEq for ForceBlendMode
impl PartialEq for ForceBlendMode
impl Copy for ForceBlendMode
impl StructuralPartialEq for ForceBlendMode
Auto Trait Implementations§
impl Freeze for ForceBlendMode
impl RefUnwindSafe for ForceBlendMode
impl Send for ForceBlendMode
impl Sync for ForceBlendMode
impl Unpin for ForceBlendMode
impl UnsafeUnpin for ForceBlendMode
impl UnwindSafe for ForceBlendMode
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.