addController
Adds a controller— an implementation of the Controller interface used to handle input events, camera animations, and other interactions— to the widget's scene.
widget.scene.screenSpaceCameraController.enableInputs = false;
widget.scene.screenSpaceCameraController.enableCollisionDetection = false;
const tiltOrbitController = new ScreenSpaceTiltOrbitCameraController();
widget.addController(tiltOrbitController);Content copied to clipboard
Parameters
controller
An implementation of the Controller interface.