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§fn default() -> Camera3DArgs
fn default() -> Camera3DArgs
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Camera3DArgswhere
Camera3DArgs: Default,
impl<'de> Deserialize<'de> for Camera3DArgswhere
Camera3DArgs: Default,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Camera3DArgs, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Camera3DArgs, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Camera3DArgs
impl Serialize for Camera3DArgs
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().