pub struct Sample {
pub tick: u64,
pub position: Vec3,
pub rotation: Quat,
pub teleport: bool,
}Expand description
Recorded pose at an integer simulation tick.
Fields§
§tick: u64§position: Vec3§rotation: Quat§teleport: boolThis key starts a discontinuity: hold the preceding key until this tick.
Motion from this key to the next is continuous unless that next key also
has teleport set. The recorder must mark teleports explicitly.
Trait Implementations§
impl Copy for Sample
impl StructuralPartialEq for Sample
Auto Trait Implementations§
impl Freeze for Sample
impl RefUnwindSafe for Sample
impl Send for Sample
impl Sync for Sample
impl Unpin for Sample
impl UnwindSafe for Sample
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