pub struct LivingRotationState {
y_body_rot: f32,
y_body_rot_o: f32,
y_head_rot: f32,
y_head_rot_o: f32,
}Expand description
Vanilla living-entity body/head rotation state.
Fields§
§y_body_rot: f32§y_body_rot_o: f32§y_head_rot: f32§y_head_rot_o: f32Implementations§
Source§impl LivingRotationState
impl LivingRotationState
Sourcepub const fn y_body_rot(self) -> f32
pub const fn y_body_rot(self) -> f32
Returns the entity’s body yaw, used for turning smoothing separate from head yaw.
Sourcepub const fn y_body_rot_o(self) -> f32
pub const fn y_body_rot_o(self) -> f32
Returns the entity’s previous-tick body yaw, used for render interpolation.
Sourcepub const fn y_head_rot(self) -> f32
pub const fn y_head_rot(self) -> f32
Returns the entity’s head yaw.
Sourcepub const fn y_head_rot_o(self) -> f32
pub const fn y_head_rot_o(self) -> f32
Returns the entity’s previous-tick head yaw, used for render interpolation.
Trait Implementations§
Source§impl Clone for LivingRotationState
impl Clone for LivingRotationState
impl Copy for LivingRotationState
Source§impl Debug for LivingRotationState
impl Debug for LivingRotationState
Source§impl Default for LivingRotationState
impl Default for LivingRotationState
Source§impl PartialEq for LivingRotationState
impl PartialEq for LivingRotationState
impl StructuralPartialEq for LivingRotationState
Auto Trait Implementations§
impl Freeze for LivingRotationState
impl RefUnwindSafe for LivingRotationState
impl Send for LivingRotationState
impl Sync for LivingRotationState
impl Unpin for LivingRotationState
impl UnsafeUnpin for LivingRotationState
impl UnwindSafe for LivingRotationState
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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 moreWraps this value in an
Arc<SyncMutex<>>