pub struct BodySnapshot {
pub position: Vec3Fix,
pub rotation: QuatFix,
pub velocity: Vec3Fix,
}Expand description
Snapshot of a single body’s render-relevant state
Fields§
§position: Vec3FixPosition
rotation: QuatFixRotation
velocity: Vec3FixLinear velocity (for extrapolation)
Implementations§
Trait Implementations§
Source§impl Clone for BodySnapshot
impl Clone for BodySnapshot
impl Copy for BodySnapshot
Source§impl Debug for BodySnapshot
impl Debug for BodySnapshot
impl Eq for BodySnapshot
Source§impl PartialEq for BodySnapshot
impl PartialEq for BodySnapshot
impl StructuralPartialEq for BodySnapshot
Auto Trait Implementations§
impl Freeze for BodySnapshot
impl RefUnwindSafe for BodySnapshot
impl Send for BodySnapshot
impl Sync for BodySnapshot
impl Unpin for BodySnapshot
impl UnsafeUnpin for BodySnapshot
impl UnwindSafe for BodySnapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more