CameraTransitionController
class
- Kind
- class
- Source
- src/rendering/CameraTransitionController.js:346
Description
Time-based camera transition controller used by Helios camera animations.
Signature
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
options | Object | Controller dependencies. | ||
camera | Object | Renderer camera to animate. | ||
requestRender | Function | optional | Callback used to schedule a render. | |
now | Function | optional | Clock function returning milliseconds. | |
requestRender | optional | null } = {} | Value passed to constructor. |
Utilities
Additional public helpers that do not belong to a narrower API area.
stop()
Source: src/rendering/CameraTransitionController.js:353
Configures or reads stop.
transition(camera, { fromPose, toPose, durationMs = 320 } = {})
Source: src/rendering/CameraTransitionController.js:365
Configures or reads transition.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
camera | Value passed to transition. | |||
fromPose | Camera pose fields to apply. | |||
toPose | Camera pose fields to apply. | |||
durationMs | optional | 320 } = {} | Value passed to transition. |