#12 initial commit
This commit is contained in:
@@ -17,6 +17,7 @@ import { DashBoard } from './Dashboard.js';
|
||||
import { MotionEngine } from './MotionEngine.js';
|
||||
import { Draggable } from './Draggable.js';
|
||||
import { EventManager } from "./EventManager";
|
||||
import { Telemetry } from './Telemetry.js';
|
||||
|
||||
THREE.Cache.enabled = true
|
||||
|
||||
@@ -130,6 +131,10 @@ class GameEngine extends EventManager{
|
||||
this.gizmo = gizmo;
|
||||
}
|
||||
|
||||
if (opts.telemetry){
|
||||
this.tm = new Telemetry(opts.telemetry, opts.mode);
|
||||
}
|
||||
|
||||
this.orbitControls = controls;
|
||||
controls.enableZoom = false;
|
||||
//const controls = new MapControls( camera, renderer.domElement );
|
||||
@@ -588,6 +593,7 @@ class GameEngine extends EventManager{
|
||||
this.clickable.removeAll();
|
||||
this.motionQueue.clearAll();
|
||||
this.ambientSound.stop();
|
||||
this.tm?.setScene(null);
|
||||
}
|
||||
|
||||
async playAmbientSound(source, path){
|
||||
|
||||
Reference in New Issue
Block a user