Struct lu_packets::raknet::client::replica::controllable_physics::FrameStats
source · [−]pub struct FrameStats {
pub position: Vector3,
pub rotation: Quaternion,
pub is_on_ground: bool,
pub is_on_rail: bool,
pub linear_velocity: Option<Vector3>,
pub angular_velocity: Option<Vector3>,
pub local_space_info: Option<LocalSpaceInfo>,
}
Fields
position: Vector3
rotation: Quaternion
is_on_ground: bool
is_on_rail: bool
linear_velocity: Option<Vector3>
Default cases of the below Option
s result in 0 for all fields in that options’ struct.
This means that if linear_velocity
is non-zero, you must write the struct, even if nothing
has changed frame over frame.
angular_velocity: Option<Vector3>
local_space_info: Option<LocalSpaceInfo>
Trait Implementations
sourceimpl Debug for FrameStats
impl Debug for FrameStats
sourceimpl<__READER: Read> Deserialize<LittleEndian, BitReader<BigEndian, __READER>> for FrameStats
impl<__READER: Read> Deserialize<LittleEndian, BitReader<BigEndian, __READER>> for FrameStats
sourcefn deserialize(reader: &mut BEBitReader<__READER>) -> Result<Self>
fn deserialize(reader: &mut BEBitReader<__READER>) -> Result<Self>
Deserializes the type by reading from the reader.
sourceimpl PartialEq<FrameStats> for FrameStats
impl PartialEq<FrameStats> for FrameStats
sourcefn eq(&self, other: &FrameStats) -> bool
fn eq(&self, other: &FrameStats) -> bool
sourceimpl<'__LIFETIME, __WRITER: Write> Serialize<LittleEndian, BitWriter<BigEndian, __WRITER>> for &'__LIFETIME FrameStats
impl<'__LIFETIME, __WRITER: Write> Serialize<LittleEndian, BitWriter<BigEndian, __WRITER>> for &'__LIFETIME FrameStats
impl StructuralPartialEq for FrameStats
Auto Trait Implementations
impl RefUnwindSafe for FrameStats
impl Send for FrameStats
impl Sync for FrameStats
impl Unpin for FrameStats
impl UnwindSafe for FrameStats
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more