pub enum MoveMode {
Walk,
Fly,
Noclip,
}Expand description
How CharacterBody::walk moves the body.
Variants§
Walk
Grounded movement: gravity, jumping, step-up, slide. The default.
Fly
The demos’ fly camera: no gravity, the full 3D wish steers
at CharacterDef::fly_speed, collision still slides.
Noclip
Fly without any collision probes.
Trait Implementations§
impl Copy for MoveMode
impl Eq for MoveMode
impl StructuralPartialEq for MoveMode
Auto Trait Implementations§
impl Freeze for MoveMode
impl RefUnwindSafe for MoveMode
impl Send for MoveMode
impl Sync for MoveMode
impl Unpin for MoveMode
impl UnsafeUnpin for MoveMode
impl UnwindSafe for MoveMode
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