pub enum Drive {
None,
Speed {
speed: Value,
multiplier: Value,
},
Acceleration {
acceleration: Value,
multiplier: Value,
},
}Expand description
What drives a particle along its heading.
Variants§
None
Nothing along the heading (only gravity and forces move it).
Speed
A speed (metres per second) along the current heading: speed times multiplier, each a function of the particle’s
age.
Acceleration
An acceleration (metres per second squared) along the current heading, integrated into the speed: acceleration
times multiplier.
Trait Implementations§
impl StructuralPartialEq for Drive
Auto Trait Implementations§
impl Forget for Drive
impl Freeze for Drive
impl RefUnwindSafe for Drive
impl Send for Drive
impl Sync for Drive
impl Unpin for Drive
impl UnsafeUnpin for Drive
impl UnwindSafe for Drive
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