diff --git a/src/lib/GameEngine.js b/src/lib/GameEngine.js index ef606de..c86c205 100644 --- a/src/lib/GameEngine.js +++ b/src/lib/GameEngine.js @@ -5,8 +5,8 @@ import { ViewportGizmo } from "three-viewport-gizmo"; import Stats from 'three/examples/jsm/libs/stats.module'; import { AnaglyphEffect } from 'three/addons/effects/AnaglyphEffect.js'; import { StereoEffect } from 'three/addons/effects/StereoEffect.js'; -import { MapControls } from 'three/addons/controls/MapControls.js'; -import { FirstPersonControls } from 'three/addons/controls/FirstPersonControls.js'; +// import { MapControls } from 'three/addons/controls/MapControls.js'; +// import { FirstPersonControls } from 'three/addons/controls/FirstPersonControls.js'; import { TransformControls } from 'three/addons/controls/TransformControls.js'; import { ARButton } from 'three/addons/webxr/ARButton.js'; import { XRButton } from 'three/addons/webxr/XRButton.js'; @@ -28,7 +28,7 @@ class GameEngine extends THREE.EventDispatcher{ this.opts = opts; const gameEngine = this; - this.perspectiveCamera = new THREE.PerspectiveCamera(45, this.aspect, 0.01, 99); + this.perspectiveCamera = new THREE.PerspectiveCamera(45, this.aspect, 0.001, 99); this.raycaster = new THREE.Raycaster(); this.perspectiveCamera.position.set(0, 0, 10);