pub struct MoveResult {
pub final_position: DVec3,
pub actual_movement: DVec3,
pub on_ground: bool,
pub horizontal_collision: bool,
pub vertical_collision: bool,
pub x_collision: bool,
pub z_collision: bool,
pub final_aabb: WorldAabb,
}Expand description
Result of a movement operation.
Fields§
§final_position: DVec3The entity’s final position after movement and collision resolution.
actual_movement: DVec3The actual movement delta applied (may differ from requested due to collisions).
on_ground: boolWhether the entity is on the ground after movement.
horizontal_collision: boolWhether horizontal collision occurred (X or Z).
vertical_collision: boolWhether vertical collision occurred.
x_collision: boolWhether X-axis collision occurred (requested.x != actual.x).
z_collision: boolWhether Z-axis collision occurred (requested.z != actual.z).
final_aabb: WorldAabbThe entity’s AABB at the final position.
Trait Implementations§
Source§impl Clone for MoveResult
impl Clone for MoveResult
Source§fn clone(&self) -> MoveResult
fn clone(&self) -> MoveResult
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 moreAuto Trait Implementations§
impl Freeze for MoveResult
impl RefUnwindSafe for MoveResult
impl Send for MoveResult
impl Sync for MoveResult
impl Unpin for MoveResult
impl UnsafeUnpin for MoveResult
impl UnwindSafe for MoveResult
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<>>