pub enum PositionPath {
Linear(DVec3),
Stepped(Vec<PositionStep>),
}Expand description
The path an entity took to reach its current position.
Variants§
Linear(DVec3)
The entity moved straight to a single position.
Stepped(Vec<PositionStep>)
The entity moved through intermediate positions the client replays in order.
Implementations§
Source§impl PositionPath
impl PositionPath
Sourcepub fn end_position(&self) -> Option<DVec3>
pub fn end_position(&self) -> Option<DVec3>
Returns the position the entity ends up at.
Trait Implementations§
Source§impl Clone for PositionPath
impl Clone for PositionPath
Source§impl Debug for PositionPath
impl Debug for PositionPath
Source§impl PartialEq for PositionPath
impl PartialEq for PositionPath
impl StructuralPartialEq for PositionPath
Auto Trait Implementations§
impl Freeze for PositionPath
impl RefUnwindSafe for PositionPath
impl Send for PositionPath
impl Sync for PositionPath
impl Unpin for PositionPath
impl UnsafeUnpin for PositionPath
impl UnwindSafe for PositionPath
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<>>