pub struct View {
pub position: [f32; 3],
pub look_at: [f32; 3],
pub locked: bool,
}Expand description
The map camera, as Camera::view reads it, in map units: [1] is the
height above the map’s plane, [0] and [2] lie on it. After a pan the
game moves both points towards their targets over the next frames.
Fields§
§position: [f32; 3]Where the camera is.
look_at: [f32; 3]The point it looks at.
locked: boolThe game holds the camera still (a menu is open, or its graphics
cannot draw): Camera::pan answers WrongPhase.
Trait Implementations§
impl Copy for View
impl StructuralPartialEq for View
Auto Trait Implementations§
impl Forget for View
impl Freeze for View
impl Move for View
impl RefUnwindSafe for View
impl Send for View
impl Sync for View
impl Unpin for View
impl UnsafeUnpin for View
impl UnwindSafe for View
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