Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
setTranformControls() {
ControlsManager.setOrbitControl();
ControlsManager.setTransformControl();
this.transform = ControlsManager.getControl('transform');
this.transform.addEventListener('objectChange', this.dispatchMeshChange.bind(this));
}
onCreate() {
ControlsManager.setOrbitControl();
window.cube = this.sceneHelper.addCube(20, 0xffffff);
SceneManager.camera.position({y: 70, z: 150});
SceneManager.camera.lookAt(0, 0, 0);
this.sceneHelper.addGrid(200, 20);
cube.position({z: 10});
}
}