Camera3D

constructor(raw: ERROR CLASS: Symbol not found for raylib.internal.Camera3D)


constructor(position: ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float>, target: ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float>, up: ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float> = 0f to 1f to 0f, fovy: Float = 45.0f, projection: CameraProjection3D = CameraProjection3D.PERSPECTIVE)

Creates a new Camera3D.

Parameters

position

The current position of the camera in 3D space.

target

The coordinates of where the camera is looking.

up

The rotational (up) vector applied to the camera

fovy

Camera FOV apperture in Y (degrees) in perspective, or near plane width in orthographic. In perspective, when increased, it zooms out; when decreased, it zooms in. In orthographic, when increased, it zooms in; when decreased, it zooms out.

projection

The type of camera projection


constructor(x: Float = 0.0f, y: Float = 0.0f, z: Float = 0.0f, targetX: Float = 0.0f, targetY: Float = 0.0f, targetZ: Float = 0.0f, upX: Float = 0.0f, upY: Float = 1.0f, upZ: Float = 0.0f, fovy: Float = 45.0f, projection: CameraProjection3D = CameraProjection3D.PERSPECTIVE)

Creates a new Camera3D.

Parameters

x

The X position of the camera

y

The Y position of the camera

z

The Z position of the camera

targetX

The X position of the camera's target

targetY

The Y position of the camera's target

targetZ

The Z position of the camera's target

upX

The X component of the up vector

upY

The Y component of the up vector

upZ

The Z component of the up vector

fovy

Camera FOV apperture in Y (degrees) in perspective, or near plane width in orthographic

projection

The type of camera projection