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): CameraAnimationSpinModel

Constructor with camera that is to be manipulated

Parameters

camera: Camera

Returns: CameraAnimationSpinModel

Methods

cee.CameraAnimationSpinModel.isAbortableByUserNavigation()
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: number

Returns: void

cee.CameraAnimationSpinModel.setIsAbortableByUserNavigation()
setIsAbortableByUserNavigation(isAbortable: boolean): void

Set the duration, in seconds, of one complete 360 degree rotation

Parameters

isAbortable: boolean

Returns: void

cee.CameraAnimationSpinModel.setRotationPointAndAxis()
setRotationPointAndAxis(rotPoint: Vec3Like, rotAxis: Vec3Like): void

Set rotation point and rotation axis

Parameters

rotPoint: Vec3Like

rotAxis: Vec3Like

Returns: void

cee.CameraAnimationSpinModel.setTargetFrameRate()
setTargetFrameRate(framesPerSecond: number): void

Set the target camera animation speed in frames per second (max FPS)

Parameters

framesPerSecond: number

Returns: void

cee.CameraAnimationSpinModel.updateCamera()
updateCamera(highResTimestamp_ms: number, isResumingAfterPause: boolean): boolean

Updates the camera

Parameters

highResTimestamp_ms: number

isResumingAfterPause: boolean

Returns: boolean