CLASSES
TagsA - Z

TargetCamera

NodeCameraTargetCamera

Description

class TargetCamera extends Camera

Constructor

new TargetCamera(name, position, scene)

Create a new targetCamera

Parameters

Name Type Description
name string
position Vector3 Position of the targetCamera
scene Scene The scene where the targetCamera will be create

Members

cameraDirection : Vector3

The camera direction

cameraRotation : Vector2

The camera rotation

rotation : Vector3

The rotation

rotationQuaternion : Quaternion

speed : number

The camera speed

noRotationConstraint : boolean

True : No rotation constraint ; False : Have rotation constraint

lockedTarget : any

The camera locked target

Methods

getFrontPosition(distance) Vector3

Parameters

Name Type Description
distance number

setTarget(target) void

Set the target of the targetCamera

Parameters

Name Type Description
target Vector3 The target position

getTarget() Vector3

Return the current target position of the camera. This value is expressed in local space.

createRigCamera(name, cameraIndex) Camera

@override

Override Camera.createRigCamera

Parameters

Name Type Description
name string
cameraIndex number

getClassName() string