This commit is contained in:
2026-03-26 11:42:43 +02:00
parent 6d05be2fec
commit 91d53d8be6
3 changed files with 13 additions and 8 deletions
+4 -4
View File
@@ -48,8 +48,11 @@ class GameEngine extends EventManager{
const scene = new THREE.Scene();
this.sceneWrapper = new THREE.Group();
this.sceneWrapper.scale.setScalar(this.scale);
scene.add(this.sceneWrapper);
this.activeObjects = new THREE.Group();
this.sceneWrapper.add(this.activeObjects);
this.activeObjects.scale.setScalar(this.scale);
//this.camera.scale.setScalar(0.1);
this.scene = scene;
@@ -89,9 +92,6 @@ class GameEngine extends EventManager{
this.camera.add(this.listener);
this.ambientSound = new THREE.Audio(this.listener);
this.activeObjects = new THREE.Group();
this.sceneWrapper.add(this.activeObjects);
if (this.opts.gizmo) {
this.orbitControls = new OrbitControls(this.camera, this.renderer.domElement);
this.orbitControls.enableZoom = false;