OrbitControls Class

Extends Object3D
Module: Controls

Orbit controls object can be controlled using the mouse.

It can be rotated using the mouse left button, moved with the mouse right button or mouse wheel.

Constructor

OrbitControls

()

Methods

updateControls

()

Update controls position and rotation.

Should be called if some of its properties are changed manually.

Properties

distance

Number

Initial distance of the object relative to the center.

Default: 3

limitDown

Number

Bottom limit angle.

Default: -1.57

limitUp

Number

Top limit angle.

Default: 1.57

movementEnabled

Boolean

Indicates if its possible to move the object around.

Default: true

needsButtonPressed

Boolean

Indicates if the button left button needs to be pressed to rotate the object.

Default: true

sensitivity

Number

Mouse sensitivity.

zoomEnabled

Boolean

Indicates if its possible to zoom in and out to the center point.

Default: true

zoomSensitivity

Number

Mouse scroll sensitivity.