DragControls

THREE.DragControls
See theDragControls companion object
class DragControls(objects: Array[Object3D], camera: Camera, domElement: Element) extends Object

This class can be used to provide a drag'n'drop interaction.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Any
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def connect(element: Element): Unit

Connect the controls to the DOM element.

Connect the controls to the DOM element.

Attributes

def disconnect(): Unit

Disconnect the controls from the DOM element.

Disconnect the controls from the DOM element.

Attributes

def dispose(): Unit

Dispose of the controls.

Dispose of the controls.

Attributes

def update(): Unit

Update the controls.

Update the controls.

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

The raycaster used for detecting 3D objects.

The raycaster used for detecting 3D objects.

Attributes

var recursive: Boolean

Whether children of draggable objects can be dragged independently from their parent.

Whether children of draggable objects can be dragged independently from their parent.

Attributes

var rotateSpeed: Double

The speed at which the object will rotate when dragged in rotate mode.

The speed at which the object will rotate when dragged in rotate mode.

Attributes

var transformGroup: Boolean

This option only works if the objects array contains a single draggable group object. If set to true, the controls does not transform individual objects but the entire group.

This option only works if the objects array contains a single draggable group object. If set to true, the controls does not transform individual objects but the entire group.

Attributes