moveCamera
Move the camera to the desired position with a transition animation.
Signatures
- Paramate.Viewport.moveCamera( targetCamera, cbDone, duration, fps )
Details
Using the moveCamera function when the cameraAutoPos is on can lead to unexpected camera behavior.
Parameters
- targetCamera
-
The camera to move to. It needs to be a camera object.
- cbDone
-
Function to call when the movement is finished.
- duration
-
Duration of the movement in milliseconds. Default = 1000.
- fps
-
Frames per second. Default = 24.