pub struct MovementBasis {
pub forward: Vector<f32>,
pub right: Vector<f32>,
}Expand description
The horizontal movement basis derived from the camera yaw.
Both vectors lie in the ground plane, so movement input stays level regardless of pitch.
Fields§
§forward: Vector<f32>Direction the camera faces, projected onto the ground plane.
right: Vector<f32>Direction to the camera’s right, projected onto the ground plane.
Trait Implementations§
Source§impl Clone for MovementBasis
impl Clone for MovementBasis
Source§fn clone(&self) -> MovementBasis
fn clone(&self) -> MovementBasis
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 MovementBasis
Auto Trait Implementations§
impl Freeze for MovementBasis
impl RefUnwindSafe for MovementBasis
impl Send for MovementBasis
impl Sync for MovementBasis
impl Unpin for MovementBasis
impl UnsafeUnpin for MovementBasis
impl UnwindSafe for MovementBasis
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