mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 17:38:10 +00:00
Merge pull request #212 from storytold/feature/standard-controls
Added basic controls for standard user.
This commit is contained in:
1 file changed
+9
-6
@@ -321,11 +321,14 @@ class Editor {
|
||||
this.renderer.domElement,
|
||||
);
|
||||
|
||||
this.orbitControls.mouseButtons = {
|
||||
MIDDLE: THREE.MOUSE.ROTATE,
|
||||
RIGHT: THREE.MOUSE.PAN,
|
||||
}; // Blender Style
|
||||
// this.orbitControls.mouseButtons = { LEFT: MOUSE.ROTATE, MIDDLE: MOUSE.DOLLY, RIGHT: MOUSE.PAN }; // Standard
|
||||
//this.orbitControls.mouseButtons = {
|
||||
// MIDDLE: THREE.MOUSE.ROTATE,
|
||||
// RIGHT: THREE.MOUSE.PAN,
|
||||
//}; // Blender Style
|
||||
this.orbitControls.mouseButtons = {
|
||||
LEFT: THREE.MOUSE.ROTATE,
|
||||
MIDDLE: THREE.MOUSE.DOLLY,
|
||||
RIGHT: THREE.MOUSE.PAN }; // Standard
|
||||
|
||||
this.control = new TransformControls(this.camera, this.renderer.domElement);
|
||||
this.control.space = "local"; // Local transformation mode
|
||||
@@ -1348,7 +1351,7 @@ class Editor {
|
||||
this.orbitControls.update();
|
||||
this.orbitControls.maxDistance = 999;
|
||||
} else if (event.key === ' ') {
|
||||
if(this.rendering == false){
|
||||
if (this.rendering == false) {
|
||||
this.startPlayback();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user