new Camera3DPlugin(scene, pluginManager)
Parameters:
Name | Type | Description |
---|---|---|
scene |
Phaser.Scene | The Scene to which this plugin is being installed. |
pluginManager |
Phaser.Plugins.PluginManager | A reference to the Phaser Plugin Manager. |
Members
-
cameras :Array.<Phaser.Cameras.Sprite3D.Camera>
-
An Array of the Camera objects being managed by this Camera Manager.
Type:
- Array.<Phaser.Cameras.Sprite3D.Camera>
- Since: 3.0.0
- Source: plugins/camera3d/src/Camera3DPlugin.js (Line 54)
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/Camera3DPlugin.js (Line 155)
Returns:
[description]
-
addOrthographicCamera(width, height)
-
[description]
Parameters:
Name Type Description width
number [description]
height
number [description]
- Since: 3.0.0
- Source: plugins/camera3d/src/Camera3DPlugin.js (Line 172)
Returns:
[description]
-
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/Camera3DPlugin.js (Line 197)
Returns:
[description]
-
getCamera(name)
-
[description]
Parameters:
Name Type Description name
string [description]
- Since: 3.0.0
- Source: plugins/camera3d/src/Camera3DPlugin.js (Line 224)
Returns:
[description]
-
removeAll()
-
[description]
- Since: 3.0.0
- Source: plugins/camera3d/src/Camera3DPlugin.js (Line 265)
Returns:
[description]
-
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/Camera3DPlugin.js (Line 247)
-
update(timestep, delta)
-
[description]
Parameters:
Name Type Description timestep
number [description]
delta
number [description]
- Since: 3.0.0
- Source: plugins/camera3d/src/Camera3DPlugin.js (Line 285)