pub enum Mode3 {
Follow {
eye_offset: Vec3,
look_offset: Vec3,
},
Orbit {
yaw: f32,
pitch: f32,
distance: f32,
pivot: Vec3,
},
FirstPerson {
eye_offset: Vec3,
yaw: f32,
pitch: f32,
},
Chase {
distance: f32,
height: f32,
look_ahead: f32,
look_height: f32,
speed_distance: f32,
speed_height: f32,
prediction: f32,
level: bool,
},
}Variants§
Follow
Offsets remain in world axes; useful for an isometric or overhead view.
Orbit
Eye offset is spherical around a target-local pivot. Positive pitch is up.
FirstPerson
Immediate world-space look, yaw zero -Z, positive pitch up. No aim damping.
Chase
Vehicle-local +Z forward, optionally flattened to the world XZ plane.
Trait Implementations§
impl Copy for Mode3
impl StructuralPartialEq for Mode3
Auto Trait Implementations§
impl Freeze for Mode3
impl RefUnwindSafe for Mode3
impl Send for Mode3
impl Sync for Mode3
impl Unpin for Mode3
impl UnwindSafe for Mode3
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