Camera3D

class Camera3D(var position: ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float>, var target: ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float>, var rotation: ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float> = 0f to 0f to 0f, var fovy: Float = 0.0f, var projection: CameraProjection3D = CameraProjection3D.PERSPECTIVE)

Represents a 3D Camera representing what the user is seeing.

Constructors

Link copied to clipboard
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>, rotation: ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float> = 0f to 0f to 0f, fovy: Float = 0.0f, projection: CameraProjection3D = CameraProjection3D.PERSPECTIVE)
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, rotX: Float = 0.0f, rotY: Float = 0.0f, rotZ: Float = 0.0f, fovy: Float = 0.0f, projection: CameraProjection3D = CameraProjection3D.PERSPECTIVE)

Creates a new Camera3D.

Properties

Link copied to clipboard
var fovy: Float

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.

Link copied to clipboard
var position: ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float>

The current position of the camera in 3D space.

Link copied to clipboard

The type of camera projection

Link copied to clipboard
var rotation: ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float>

The rotational vector applied to the camera

Link copied to clipboard
var rotX: Float

The X rotational value of the camera.

Link copied to clipboard
var rotY: Float

The Y rotational value of the camera.

Link copied to clipboard
var rotZ: Float

The Z rotational value of the camera.

Link copied to clipboard
var target: ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float>

The coordinates of where the camera is looking.

Link copied to clipboard

The X coordinate of the camera's current target to look at.

Link copied to clipboard

The Y coordinate of the camera's current target to look at.

Link copied to clipboard

The Z coordinate of the camera's current target to look at.

Link copied to clipboard
var x: Float

The X coordinate of the camera's position.

Link copied to clipboard
var y: Float

The Y coordinate of the camera's position.

Link copied to clipboard
var z: Float

The Z coordinate of the camera's position.

Functions

Link copied to clipboard
fun update(mode: CameraMode3D)

Updates the camera's current mode.

fun update(delta: ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float> = 0F to 0F to 0F, deltaRot: ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float> = 0F to 0F to 0F, zoom: Float = 1.0f)
fun update(dx: Float = 0.0f, dy: Float = 0.0f, dz: Float = 0.0f, drotX: Float = 0.0f, drotY: Float = 0.0f, drotZ: Float = 0.0f, zoom: Float = 1.0f)

Updates the camera's movement, rotation, and speed.