Class: Camera

Camera()

new Camera()

constructor
Source:

Members

scale :number

camera scale
Type:
  • number
Source:

Methods

forward()

returns the forward axis of the coordinate system
Source:

position()

Position getter
Source:

pv()

Returns the view-projection matrix
Source:

resized()

Reconstructs the perspective projection according to a changed viewport
Source:
returns the right axis of the coordinate system
Source:

rotation()

Rotation getter
Source:

setPosition()

Position setter
Source:

setRotation()

Rotation setter
Source:

up()

returns the up axis of the coordinate system
Source:

update()

update camera position and rotation according to the input and delta time
Source: