Class: SystemCameraProperties

SystemCameraProperties

A camera properties of the game

new SystemCameraProperties (json)

Name Type Description
json Object optional Json object describing the camera properties
Properties:
Name Type Description
distance number The distance between the target position and the camera position
horizontalAngle number The horizontal angle between target and camera
verticalAngle number The vertical angle between target and camera
targetOffsetX number The target offset x position
targetOffsetY number The target offset y position
targetOffsetZ number The target offset z position
isSquareTargetOffsetX boolean Indicate if the current target x offset is square value
isSquareTargetOffsetY number Indicate if the current target y offset is square value
isSquareTargetOffsetZ number Indicate if the current target z offset is square value
fov number The field of fiew
near number The near
far number The far

Methods

read (json)

Read the JSON associated to the camera properties
Name Type Description
json Object Json object describing the camera properties

initializeCamera (camera)

Initialize a camera according this system properties
Name Type Description
camera Camera The camera