OrbitControls

THREE.OrbitControls
class OrbitControls(camera: Camera, domElement: Element) extends Object

Orbit controls allow the camera to orbit around a target.

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 reset(): Unit

Reset camera to initial position.

Reset camera to initial position.

Attributes

def saveState(): Unit

Save the current state of the controls.

Save the current state of the controls.

Attributes

def update(): Boolean

Sets the focus of the camera to the target.

Sets the focus of the camera to the target.

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 autoRotate: Boolean

Whether to automatically rotate around the target.

Whether to automatically rotate around the target.

Attributes

var autoRotateSpeed: Double

The speed of auto rotation.

The speed of auto rotation.

Attributes

var dampingFactor: Double

The damping inertia factor.

The damping inertia factor.

Attributes

var enableDamping: Boolean

Whether to enable damping (inertia).

Whether to enable damping (inertia).

Attributes

var enablePan: Boolean

Whether to enable panning.

Whether to enable panning.

Attributes

var enableRotate: Boolean

Whether to enable rotation.

Whether to enable rotation.

Attributes

var enableZoom: Boolean

Whether to enable zooming.

Whether to enable zooming.

Attributes

var maxDistance: Double

Maximum distance from target when zooming.

Maximum distance from target when zooming.

Attributes

var minDistance: Double

Minimum distance from target when zooming.

Minimum distance from target when zooming.

Attributes

var panSpeed: Double

The speed of panning.

The speed of panning.

Attributes

The current position of the camera.

The current position of the camera.

Attributes

var rotateSpeed: Double

The speed of rotation.

The speed of rotation.

Attributes

The point that the camera orbits around.

The point that the camera orbits around.

Attributes

var zoom0: Double

The camera zoom.

The camera zoom.

Attributes

var zoomSpeed: Double

The speed of zooming.

The speed of zooming.

Attributes