pub struct Movement {
pub drive: Drive,
pub gravity: Value,
pub turns: Option<Turns>,
pub drag: Option<Drag>,
pub fields: Option<FieldResponse>,
}Expand description
How a particle moves.
Fields§
§drive: DriveThe drive along the heading.
gravity: ValueAcceleration along world -Y (metres per second squared; positive falls); it bends the heading.
turns: Option<Turns>Random turns.
drag: Option<Drag>Following the emitter.
fields: Option<FieldResponse>How force fields move the particle; None when the particle ignores them.
Trait Implementations§
impl StructuralPartialEq for Movement
Auto Trait Implementations§
impl Forget for Movement
impl Freeze for Movement
impl RefUnwindSafe for Movement
impl Send for Movement
impl Sync for Movement
impl Unpin for Movement
impl UnsafeUnpin for Movement
impl UnwindSafe for Movement
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