TrackballControls

THREE.TrackballControls
class TrackballControls(camera: Camera, domElement: UndefOr[Element]) extends Object

This class is similar to [[OrbitControls]]. However, it does not maintain a constant camera up vector. That means if the camera orbits over the "north" and "south" poles, it does not flip to stay "right side up".

Attributes

Graph
Supertypes
class Object
trait Any
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def dispose(): Unit

Dispose of the controls.

Dispose of the controls.

Attributes

def handleResize(): Unit

Must be called if the application window is resized.

Must be called if the application window is resized.

Attributes

def reset(): Unit

Resets the controls to its initial state.

Resets the controls to its initial state.

Attributes

def update(): Unit

Update the controls. Call this method every frame.

Update the controls. Call this method every frame.

Attributes

Inherited methods

def hasOwnProperty(v: String): Boolean

Attributes

Inherited from:
Object
def isPrototypeOf(v: Object): Boolean

Attributes

Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean

Attributes

Inherited from:
Object
def toLocaleString(): String

Attributes

Inherited from:
Object
def valueOf(): Any

Attributes

Inherited from:
Object

Concrete fields

var dynamicDampingFactor: Double

Defines the intensity of damping. Only considered if staticMoving is set to false.

Defines the intensity of damping. Only considered if staticMoving is set to false.

Attributes

var keys: Array[String]

This array holds keycodes for controlling interactions.

This array holds keycodes for controlling interactions.

Attributes

var maxDistance: Double

How far you can dolly out (perspective camera only).

How far you can dolly out (perspective camera only).

Attributes

var maxZoom: Double

How far you can zoom out (orthographic camera only).

How far you can zoom out (orthographic camera only).

Attributes

var minDistance: Double

How far you can dolly in (perspective camera only).

How far you can dolly in (perspective camera only).

Attributes

var minZoom: Double

How far you can zoom in (orthographic camera only).

How far you can zoom in (orthographic camera only).

Attributes

var mouseButtons: Object

This object contains references to the mouse actions used by the controls.

This object contains references to the mouse actions used by the controls.

Attributes

var noPan: Boolean

Whether panning is disabled or not.

Whether panning is disabled or not.

Attributes

var noRotate: Boolean

Whether rotation is disabled or not.

Whether rotation is disabled or not.

Attributes

var noZoom: Boolean

Whether zooming is disabled or not.

Whether zooming is disabled or not.

Attributes

var panSpeed: Double

The pan speed.

The pan speed.

Attributes

var rotateSpeed: Double

The rotation speed.

The rotation speed.

Attributes

var staticMoving: Boolean

Whether damping is disabled or not.

Whether damping is disabled or not.

Attributes

The focus point of the controls.

The focus point of the controls.

Attributes

var zoomSpeed: Double

The zoom speed.

The zoom speed.

Attributes