pub struct MoveControl {
wanted_position: DVec3,
speed_modifier: f64,
strafe_forward: f32,
strafe_right: f32,
operation: MoveControlOperation,
}Fields§
§wanted_position: DVec3§speed_modifier: f64§strafe_forward: f32§strafe_right: f32§operation: MoveControlOperationImplementations§
Source§impl MoveControl
impl MoveControl
pub const fn new() -> Self
pub const fn operation(&self) -> MoveControlOperation
pub const fn wanted_position(&self) -> DVec3
pub const fn speed_modifier(&self) -> f64
pub const fn strafe_forward(&self) -> f32
pub const fn strafe_right(&self) -> f32
pub fn set_wanted_position(&mut self, position: DVec3, speed_modifier: f64)
pub const fn strafe(&mut self, forward: f32, right: f32)
pub const fn set_wait(&mut self)
pub const fn set_jumping(&mut self)
Trait Implementations§
Source§impl Clone for MoveControl
impl Clone for MoveControl
Source§fn clone(&self) -> MoveControl
fn clone(&self) -> MoveControl
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 moreimpl Copy for MoveControl
Source§impl Debug for MoveControl
impl Debug for MoveControl
Source§impl Default for MoveControl
impl Default for MoveControl
Source§impl PartialEq for MoveControl
impl PartialEq for MoveControl
impl StructuralPartialEq for MoveControl
Auto Trait Implementations§
impl Freeze for MoveControl
impl RefUnwindSafe for MoveControl
impl Send for MoveControl
impl Sync for MoveControl
impl Unpin for MoveControl
impl UnsafeUnpin for MoveControl
impl UnwindSafe for MoveControl
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<>>