Class: CameraManager

Phaser.Cameras.Sprite3D. CameraManager

[description]


new CameraManager(scene)

Parameters:
Name Type Description
scene Phaser.Scene

[description]

Since: 3.0.0
Source: plugins/camera3d/src/CameraManager.js (Line 12)

Members


cameras :Array.<Phaser.Cameras.Sprite3D.Camera>

An Array of the Camera objects being managed by this Camera Manager.

Type:
Since: 3.0.0
Source: plugins/camera3d/src/CameraManager.js (Line 47)

scene :Phaser.Scene

[description]

Type:
Since: 3.0.0
Source: plugins/camera3d/src/CameraManager.js (Line 29)

systems :Phaser.Scenes.Systems

[description]

Type:
Since: 3.0.0
Source: plugins/camera3d/src/CameraManager.js (Line 38)

Methods


add( [fieldOfView] [, width] [, height])

[description]

Parameters:
Name Type Argument Default Description
fieldOfView number <optional>
80

[description]

width number <optional>

[description]

height number <optional>

[description]

Since: 3.0.0
Source: plugins/camera3d/src/CameraManager.js (Line 90)
Returns:

[description]

Type
Phaser.Cameras.Sprite3D.PerspectiveCamera

addOrthographicCamera(width, height)

[description]

Parameters:
Name Type Description
width number

[description]

height number

[description]

Since: 3.0.0
Source: plugins/camera3d/src/CameraManager.js (Line 107)
Returns:

[description]

Type
Phaser.Cameras.Sprite3D.OrthographicCamera

addPerspectiveCamera( [fieldOfView] [, width] [, height])

[description]

Parameters:
Name Type Argument Default Description
fieldOfView number <optional>
80

[description]

width number <optional>

[description]

height number <optional>

[description]

Since: 3.0.0
Source: plugins/camera3d/src/CameraManager.js (Line 132)
Returns:

[description]

Type
Phaser.Cameras.Sprite3D.PerspectiveCamera

getCamera(name)

[description]

Parameters:
Name Type Description
name string

[description]

Since: 3.0.0
Source: plugins/camera3d/src/CameraManager.js (Line 159)
Returns:

[description]

Type
Phaser.Cameras.Sprite3D.OrthographicCamera | Phaser.Cameras.Sprite3D.PerspectiveCamera

removeAll()

[description]

Since: 3.0.0
Source: plugins/camera3d/src/CameraManager.js (Line 200)
Returns:

[description]

Type
Phaser.Cameras.Sprite3D.OrthographicCamera | Phaser.Cameras.Sprite3D.PerspectiveCamera

removeCamera(camera)

[description]

Parameters:
Name Type Description
camera Phaser.Cameras.Sprite3D.OrthographicCamera | Phaser.Cameras.Sprite3D.PerspectiveCamera

[description]

Since: 3.0.0
Source: plugins/camera3d/src/CameraManager.js (Line 182)

update(timestep, delta)

[description]

Parameters:
Name Type Description
timestep number

[description]

delta number

[description]

Since: 3.0.0
Source: plugins/camera3d/src/CameraManager.js (Line 220)