TargetCamera

data class TargetCamera(eye: Vec3, target: Vec3, upVector: Vec3) : Camera

A camera located in the eye position and pointed at the given target, while preserving the defined upVector.

Constructors

TargetCamera
Link copied to clipboard
common
fun TargetCamera(eye: Vec3, target: Vec3, upVector: Vec3 = Vec3.unitZ)

Properties

eye
Link copied to clipboard
common
open override val eye: Vec3
Position of the camera eye.
target
Link copied to clipboard
common
val target: Vec3
Position of the camera target.
upVector
Link copied to clipboard
common
val upVector: Vec3
Up-vector preserved for the camera.
viewMatrix
Link copied to clipboard
common
open override val viewMatrix: Mat4
View matrix defined by the camera.