pub struct MotionState {
pub travelled: [f32; 3],
pub gained: f32,
pub lifted: f32,
pub turned: [f32; 4],
pub facing: [f32; 4],
pub turns: u32,
pub next_turn: f32,
}Expand description
Where an emitter’s motion has taken it, in its parent’s frame: what NodeMotion::advance steps. The emitter’s
frame is its parent’s moved by travelled, turned by facing, then placed (its jitter and placement) and turned by
turned.
Fields§
§travelled: [f32; 3]The position its motion has reached (metres).
gained: f32The speed along its forward gained by acceleration (metres per second), within its speed limits.
lifted: f32The speed along its lift axis gained by lift (metres per second).
turned: [f32; 4]Its turn about its own axes by its spin and random turns: a unit quaternion [x, y, z, w].
facing: [f32; 4]The turn of its whole frame, in its parent’s, that faces its forward along its velocity (identity unless it
aligns with its motion): a unit quaternion [x, y, z, w].
turns: u32The random turns taken, and the active time the next is due at (seconds).
next_turn: f32Trait Implementations§
Source§impl Clone for MotionState
impl Clone for MotionState
impl Copy for MotionState
Source§impl Debug for MotionState
impl Debug for MotionState
Source§impl Default for MotionState
impl Default for MotionState
Source§fn default() -> MotionState
fn default() -> MotionState
Not moved: at the origin, at rest, unturned, the first random turn due at once.