pub struct CameraConstraints {
pub min_distance: f64,
pub max_distance: f64,
pub min_pitch: f64,
pub max_pitch: f64,
}Expand description
Per-frame clamps applied to the camera by CameraController.
Prevents the user from zooming too close (sub-meter), too far (beyond Earth’s radius), or pitching past the horizon.
Fields§
§min_distance: f64Minimum camera distance in meters.
max_distance: f64Maximum camera distance in meters.
min_pitch: f64Minimum pitch in radians (typically 0 = top-down).
max_pitch: f64Maximum pitch in radians (typically just below PI/2).
Trait Implementations§
Source§impl Clone for CameraConstraints
impl Clone for CameraConstraints
Source§fn clone(&self) -> CameraConstraints
fn clone(&self) -> CameraConstraints
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 CameraConstraints
impl Debug for CameraConstraints
Auto Trait Implementations§
impl Freeze for CameraConstraints
impl RefUnwindSafe for CameraConstraints
impl Send for CameraConstraints
impl Sync for CameraConstraints
impl Unpin for CameraConstraints
impl UnsafeUnpin for CameraConstraints
impl UnwindSafe for CameraConstraints
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