TargetCamera

NodeCameraTargetCamera

Description

class TargetCamera extends Camera

Constructor

new TargetCamera(name, position, scene)

Parameters

Name Type Description
name string
position Vector3
scene Scene

Members

cameraDirection : Vector3

cameraRotation : Vector2

rotation : Vector3

rotationQuaternion : Quaternion

speed : number

noRotationConstraint : boolean

lockedTarget : any

Methods

getFrontPosition(distance) Vector3

Parameters

Name Type Description
distance number

storeState() Camera

setTarget(target) void

Parameters

Name Type Description
target Vector3

getTarget() Vector3

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

createRigCamera(name, cameraIndex) Nullable<Camera>

@override

Override Camera.createRigCamera

Parameters

Name Type Description
name string
cameraIndex number

getClassName() string