setPosition
Sets the position of the camera.
note
This method is only available in global
mode.
Syntax
player.camera.setMode(mode);
Parameters
Name | Type | Description |
---|---|---|
position | CameraPosition | The position of the camera. |
Example
player.camera.setPosition({
to: [0, 5, 10],
lookAt: [0, 5, 20],
});
Available on: Client Server