How to use the mage-engine.ControlsManager.setOrbitControl function in mage-engine

To help you get started, we’ve selected a few mage-engine examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github MageStudio / Mage-Studio / app / scene / EditorScene / App.js View on Github external
setTranformControls() {
        ControlsManager.setOrbitControl();
        ControlsManager.setTransformControl();

        this.transform = ControlsManager.getControl('transform');
        this.transform.addEventListener('objectChange', this.dispatchMeshChange.bind(this));
    }
github MageStudio / Mage / template / src / FirstScene / App.js View on Github external
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});
    }
}