pub struct FirstPerson {
pub pos: Vec3,
pub heading: SphericalVec,
}Expand description
First-person camera mode.
This is the familiar “FPS” movement mode, based on camera position and heading (look-at vector).
Fields§
§pos: Vec3Current position of the camera in world space.
heading: SphericalVecCurrent heading of the camera in world space.
Implementations§
Source§impl FirstPerson
impl FirstPerson
Trait Implementations§
Source§impl Clone for FirstPerson
impl Clone for FirstPerson
Source§fn clone(&self) -> FirstPerson
fn clone(&self) -> FirstPerson
Returns a copy 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 FirstPerson
impl Debug for FirstPerson
impl Copy for FirstPerson
Auto Trait Implementations§
impl Freeze for FirstPerson
impl RefUnwindSafe for FirstPerson
impl Send for FirstPerson
impl Sync for FirstPerson
impl Unpin for FirstPerson
impl UnwindSafe for FirstPerson
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