CameraAnimationSpinModel
- class cee.CameraAnimationSpinModel()
Camera animation for spinning the model around the given axis and point.
The camera will keep its distance to the given rotation point and the current up vector. The animation will orbit the model giving the illusion that the model is spinning around the prescribed axis.
The speed of the camera movement can be controlled with setting the duration of a full rotation.
Constructors
Methods
Constructors
Methods
isAnimationDone
- CameraAnimationSpinModel.isAnimationDone()
Query if the camera animation is finished.
- Return type:
boolean
setFullRotationDuration
- CameraAnimationSpinModel.setFullRotationDuration(durationInSeconds)
- Arguments:
durationInSeconds (
number
) – None
Set the duration, in seconds, of one complete 360 degree rotation
- Return type:
void
setRotationPointAndAxis
setTargetFrameRate
- CameraAnimationSpinModel.setTargetFrameRate(framesPerSecond)
- Arguments:
framesPerSecond (
number
) – None
Set the target camera animation speed in frames per second (max FPS)
- Return type:
void
updateCamera
- CameraAnimationSpinModel.updateCamera(highResTimestamp_ms, isResumingAfterPause)
- Arguments:
highResTimestamp_ms (
number
) – NoneisResumingAfterPause (
boolean
) – None
Updates the camera
- Return type:
boolean