pub struct Camera3D {
pub fov_y_degrees: f32,
pub near: f32,
pub far: f32,
pub position: [f32; 3],
pub yaw: f32,
pub pitch: f32,
pub controller: Option<CameraController>,
}Expand description
Authored fields of a Camera3D; the runtime view matrix and per-frame input
intent are not declared.
Camera3DArgs {
fov_y_degrees: 80.0,
near: 0.05,
far: 500.0,
position: [0.0, 4.0, 0.0],
..Default::default()
};Fields§
§fov_y_degrees: f32Vertical field-of-view in degrees.
near: f32Near clip plane distance.
far: f32Far clip plane distance.
position: [f32; 3]Initial eye position in world space [x, y, z].
yaw: f32Initial yaw in radians (0 = looking toward -Z).
pitch: f32Initial pitch in radians.
controller: Option<CameraController>Input controller settings, or null to leave the camera uncontrolled
(driven by a CameraShot / Scene
cutscene). Omitted defaults to a free-fly inspector controller.
Trait Implementations§
Source§impl Clone for Camera3DArgs
impl Clone for Camera3DArgs
Source§fn clone(&self) -> Camera3DArgs
fn clone(&self) -> Camera3DArgs
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 moreSource§impl Debug for Camera3DArgs
impl Debug for Camera3DArgs
Source§impl Default for Camera3DArgs
impl Default for Camera3DArgs
Source§impl<'de> Deserialize<'de> for Camera3DArgswhere
Camera3DArgs: Default,
impl<'de> Deserialize<'de> for Camera3DArgswhere
Camera3DArgs: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Camera3DArgs
impl RefUnwindSafe for Camera3DArgs
impl Send for Camera3DArgs
impl Sync for Camera3DArgs
impl Unpin for Camera3DArgs
impl UnsafeUnpin for Camera3DArgs
impl UnwindSafe for Camera3DArgs
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