Constructor
new CameraHelper( camera : Camera )
Constructs a new arrow helper.
| camera |
The camera to visualize. |
Properties
.pointMap : Object.<string, Array.<number>>
This contains the points used to visualize the camera.
Methods
.dispose()
Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app.
.setColors( frustum : Color, cone : Color, up : Color, target : Color, cross : Color ) : CameraHelper
Defines the colors of the helper.
| frustum |
The frustum line color. |
| cone |
The cone line color. |
| up |
The up line color. |
| target |
The target line color. |
| cross |
The cross line color. |
- Returns: A reference to this helper.
.update()
Updates the helper based on the projection matrix of the camera.