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
fitToElementbefore work that depends on the new camera position. - If you own the camera, update its projection when the size changes, and dispose
navigation.controlsat the end.OpenThreedoes this for its own camera.
Constructor
Properties
CameraControls
THREE.Clock
CameraMode
THREE.Vector3
Read-only.
THREE.Vector3
Read-only.