pub struct MoveResult {
pub position: Vec3Fix,
pub grounded: bool,
pub velocity: Vec3Fix,
pub platform_velocity: Vec3Fix,
}Expand description
Result of a character move operation
Fields§
§position: Vec3FixFinal position after movement
grounded: boolWhether the character is on the ground
velocity: Vec3FixVelocity after sliding (may differ from input if we slid along a wall)
platform_velocity: Vec3FixVelocity inherited from the moving platform (zero if not on platform)
Trait Implementations§
Source§impl Clone for MoveResult
impl Clone for MoveResult
impl Copy for MoveResult
Source§impl Debug for MoveResult
impl Debug for MoveResult
impl Eq for MoveResult
Source§impl PartialEq for MoveResult
impl PartialEq for MoveResult
impl StructuralPartialEq for MoveResult
Auto 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,
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 more