pub struct CharacterInput {
pub direction: Vec3,
pub jump: bool,
}Fields§
§direction: Vec3Desired horizontal direction, clamped to unit length. Y is ignored.
jump: boolCurrent held state; the motor buffers only a new press, avoiding automatic bunny hops.
Trait Implementations§
Source§impl Clone for CharacterInput
impl Clone for CharacterInput
Source§fn clone(&self) -> CharacterInput
fn clone(&self) -> CharacterInput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CharacterInput
impl Debug for CharacterInput
Source§impl Default for CharacterInput
impl Default for CharacterInput
Source§fn default() -> CharacterInput
fn default() -> CharacterInput
Returns the “default value” for a type. Read more
impl Copy for CharacterInput
Auto Trait Implementations§
impl Freeze for CharacterInput
impl RefUnwindSafe for CharacterInput
impl Send for CharacterInput
impl Sync for CharacterInput
impl Unpin for CharacterInput
impl UnwindSafe for CharacterInput
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