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
-
cee.CameraAnimationSpinModel.constructor() - CameraAnimationSpinModel(camera:
Camera):CameraAnimationSpinModelConstructor with camera that is to be manipulated
Parameters
camera:CameraReturns:
CameraAnimationSpinModel
Methods
- isAbortableByUserNavigation(): boolean
Whether this camera animation should be aborted if user navigation/interaction is detected
Returns: boolean
-
cee.CameraAnimationSpinModel.isAnimationDone() - isAnimationDone(): boolean
Query if the camera animation is finished.
Returns: boolean
-
cee.CameraAnimationSpinModel.setFullRotationDuration() - setFullRotationDuration(durationInSeconds: number): void
Set the duration, in seconds, of one complete 360 degree rotation
Parameters
durationInSeconds: numberReturns: void
- setIsAbortableByUserNavigation(isAbortable: boolean): void
Set the duration, in seconds, of one complete 360 degree rotation
Parameters
isAbortable: booleanReturns: void
-
cee.CameraAnimationSpinModel.setRotationPointAndAxis() -
Set rotation point and rotation axis
Parameters
Returns: void
-
cee.CameraAnimationSpinModel.setTargetFrameRate() - setTargetFrameRate(framesPerSecond: number): void
Set the target camera animation speed in frames per second (max FPS)
Parameters
framesPerSecond: numberReturns: void
-
cee.CameraAnimationSpinModel.updateCamera() - updateCamera(highResTimestamp_ms: number, isResumingAfterPause: boolean): boolean
Updates the camera
Parameters
highResTimestamp_ms: number
isResumingAfterPause: boolean
Returns: boolean