DragControls constructor

DragControls(
  1. List<Object3D> objects,
  2. Camera camera,
  3. GlobalKey<PeripheralsState> listenableKey
)

objects - An array of draggable 3D objects.

camera - The camera of the rendered scene.

listenableKey - The element used for event listeners.

Implementation

DragControls(this.objects, this.camera, this.listenableKey):super() {
  scope = this;
  activate();
}