OrbitControlsModule

modules/app/ OrbitControlsModule

.new OrbitControlsModule(paramsopt)

Source:
Parameters:
Name Type Attributes Description
params Object <optional>
Name Type Attributes Default Description
object Object <optional>
camera

Object to which controls are aplied.

target THREE.Vector3 <optional>
new Vector3()

Controls center vector.

follow Boolean <optional>
false

Follow the target

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 OrbitControlsModule()
]);