pub struct EntityMovementSyncUpdate {
pub entity_id: i32,
pub has_position: bool,
pub has_rotation: bool,
pub position: DVec3,
pub velocity: DVec3,
pub body_rotation: (f32, f32),
pub head_yaw: f32,
pub on_ground: bool,
}Expand description
Runtime values accepted by tracked entity movement sync.
Fields§
§entity_id: i32Entity network id.
has_position: boolWhether this update includes position.
has_rotation: boolWhether this update includes body/head rotation.
position: DVec3Current entity position, or the previous position for rotation-only updates.
velocity: DVec3Current entity velocity.
body_rotation: (f32, f32)Current body yaw and pitch in degrees.
head_yaw: f32Current head yaw in degrees.
on_ground: boolCurrent on-ground flag.
Trait Implementations§
Source§impl Clone for EntityMovementSyncUpdate
impl Clone for EntityMovementSyncUpdate
Source§fn clone(&self) -> EntityMovementSyncUpdate
fn clone(&self) -> EntityMovementSyncUpdate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EntityMovementSyncUpdate
Source§impl Debug for EntityMovementSyncUpdate
impl Debug for EntityMovementSyncUpdate
Source§impl PartialEq for EntityMovementSyncUpdate
impl PartialEq for EntityMovementSyncUpdate
impl StructuralPartialEq for EntityMovementSyncUpdate
Auto Trait Implementations§
impl Freeze for EntityMovementSyncUpdate
impl RefUnwindSafe for EntityMovementSyncUpdate
impl Send for EntityMovementSyncUpdate
impl Sync for EntityMovementSyncUpdate
impl Unpin for EntityMovementSyncUpdate
impl UnsafeUnpin for EntityMovementSyncUpdate
impl UnwindSafe for EntityMovementSyncUpdate
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<>>