pub struct State {
pub position: WorldPos,
pub velocity: DVec3,
}Expand description
A position and velocity, read in some frame.
Which frame is not carried here: a state is only ever handled together with
the FrameId it belongs to, and pairing them in one struct would invite
Frames::convert to be called with a frame the state is not actually in
and quietly agree.
Fields§
§position: WorldPosPosition relative to the frame’s origin.
velocity: DVec3Velocity relative to the frame, in m/s.
Implementations§
Trait Implementations§
impl Copy for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnsafeUnpin for State
impl UnwindSafe for State
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