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

()

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.

Default: 0.001