Skip to main content

Import

Example

Notes

  • Call update() in each frame.
  • A change of mode resets the position and the target of the camera.
  • In Plan mode, the left mouse button pans. In Model mode, it rotates.
  • Await fitToElement before work that depends on the new camera position.
  • If you own the camera, update its projection when the size changes, and dispose navigation.controls at the end. OpenThree does this for its own camera.

Constructor

Properties

CameraControls
THREE.Clock
CameraMode
THREE.Vector3
Read-only.
THREE.Vector3
Read-only.

Methods

setupCamera

fitToElement

update

Types

CameraMode

Last modified on October 6, 2026