# 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

- `constructor`

Methods

- `isAbortableByUserNavigation`
- `isAnimationDone`
- `setFullRotationDuration`
- `setIsAbortableByUserNavigation`
- `setRotationPointAndAxis`
- `setTargetFrameRate`
- `updateCamera`

## Constructors

`CameraAnimationSpinModel.``constructor`(camera)

  Arguments: | camera (`Camera`) – None

  Constructor with camera that is to be manipulated

  Return type: | CameraAnimationSpinModel

## Methods

### isAbortableByUserNavigation

`CameraAnimationSpinModel.``isAbortableByUserNavigation`()

  Whether this camera animation should be aborted if user navigation/interaction is detected

  Return type: | boolean

### 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

### setIsAbortableByUserNavigation

`CameraAnimationSpinModel.``setIsAbortableByUserNavigation`(isAbortable)

  Arguments: | isAbortable (`boolean`) – None

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

  Return type: | void

### setRotationPointAndAxis

`CameraAnimationSpinModel.``setRotationPointAndAxis`(rotPoint, rotAxis)

  Arguments: | rotPoint (`Vec3Like`) – None rotAxis (`Vec3Like`) – None

  Set rotation point and rotation axis

  Return type: | void

### 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`) – None isResumingAfterPause (`boolean`) – None

  Updates the camera

  Return type: | boolean

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Envision for Web in your own language, or choose a sample question below to start a conversation:

What is HOOPS Envision for Web?
What are the latest release notes for HOOPS Envision for Web?
How do I start evaluating HOOPS Envision for Web?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...