Type Alias Camera

Source
pub type Camera = Camera3D;
Expand description

Camera type fallback, defaults to Camera3D

Aliased Type§

struct Camera {
    pub position: Vector3<f32>,
    pub target: Vector3<f32>,
    pub up: Vector3<f32>,
    pub fovy: f32,
    pub projection: CameraProjection,
}

Fields§

§position: Vector3<f32>

Camera position

§target: Vector3<f32>

Camera target it looks-at

§up: Vector3<f32>

Camera up vector (rotation over its axis)

§fovy: f32

Camera field-of-view aperture in Y (degrees) in perspective, used as near plane width in orthographic

§projection: CameraProjection

Camera projection: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHIC