pub struct SMovePlayer {
pub position: DVec3,
pub y_rot: f32,
pub x_rot: f32,
pub on_ground: bool,
pub horizontal_collision: bool,
pub has_pos: bool,
pub has_rot: bool,
}Expand description
Constructed packet by the server to more easily be able to handle movement.
Fields§
§position: DVec3§y_rot: f32§x_rot: f32§on_ground: bool§horizontal_collision: bool§has_pos: bool§has_rot: boolImplementations§
Trait Implementations§
Source§impl Clone for SMovePlayer
impl Clone for SMovePlayer
Source§fn clone(&self) -> SMovePlayer
fn clone(&self) -> SMovePlayer
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 moreSource§impl Debug for SMovePlayer
impl Debug for SMovePlayer
Source§impl From<SMovePlayerPos> for SMovePlayer
impl From<SMovePlayerPos> for SMovePlayer
Source§fn from(value: SMovePlayerPos) -> Self
fn from(value: SMovePlayerPos) -> Self
Converts to this type from the input type.
Source§impl From<SMovePlayerPosRot> for SMovePlayer
impl From<SMovePlayerPosRot> for SMovePlayer
Source§fn from(value: SMovePlayerPosRot) -> Self
fn from(value: SMovePlayerPosRot) -> Self
Converts to this type from the input type.
Source§impl From<SMovePlayerRot> for SMovePlayer
impl From<SMovePlayerRot> for SMovePlayer
Source§fn from(value: SMovePlayerRot) -> Self
fn from(value: SMovePlayerRot) -> Self
Converts to this type from the input type.
Source§impl From<SMovePlayerStatusOnly> for SMovePlayer
impl From<SMovePlayerStatusOnly> for SMovePlayer
Source§fn from(value: SMovePlayerStatusOnly) -> Self
fn from(value: SMovePlayerStatusOnly) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SMovePlayer
impl RefUnwindSafe for SMovePlayer
impl Send for SMovePlayer
impl Sync for SMovePlayer
impl Unpin for SMovePlayer
impl UnsafeUnpin for SMovePlayer
impl UnwindSafe for SMovePlayer
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<>>