ControlsModule

modules/app/ ControlsModule

.new ControlsModule(paramsopt)

Source:
Parameters:
Name Type Attributes Description
params Object <optional>
Example

Creating a rendering module and passing it to App's modules

new App([
  new ElementModule(),
  new SceneModule(),
  new DefineModule('camera', new WHS.PerspectiveCamera({
    position: new THREE.Vector3(0, 6, 18),
    far: 10000
  })),
  new RenderingModule(),
  new ControlsModule.from(new THREE.TrackballControls())
]);

Methods

(static) .setControls(controls) → {this}

Set working controls

Source:
Parameters:
Name Type Description
controls Object

Working three.js controls object.

(static) .setUpdate(update) → {this}

Set controsl update function

Source:
Parameters:
Name Type Description
update function

Update function