pub struct ForcedPosition {
pub entity_id: u32,
pub space_id: u32,
pub vehicle_entity_id: u32,
pub position: Vec3A,
pub direction: Vec3A,
}Expand description
This is when an update is being forced back for an (ordinarily) client controlled entity, including for the player. Usually this is due to a physics correction from the server, but it could be for any reason decided by the server (e.g. server-initiated teleport).
Fields§
§entity_id: u32§space_id: u32§vehicle_entity_id: u32§position: Vec3A§direction: Vec3ATrait Implementations§
Source§impl Clone for ForcedPosition
impl Clone for ForcedPosition
Source§fn clone(&self) -> ForcedPosition
fn clone(&self) -> ForcedPosition
Returns a duplicate of the value. Read more
1.0.0 · 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 ForcedPosition
impl Debug for ForcedPosition
Auto Trait Implementations§
impl Freeze for ForcedPosition
impl RefUnwindSafe for ForcedPosition
impl Send for ForcedPosition
impl Sync for ForcedPosition
impl Unpin for ForcedPosition
impl UnwindSafe for ForcedPosition
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