|
@@ -2,6 +2,7 @@ import * as THREE from "three";
|
|
|
|
|
|
import FloorplanControls from "../controls/FloorplanControls.js";
|
|
|
import { OrbitControls } from "three/examples/jsm/controls/OrbitControls.js";
|
|
|
+import { TrackballControls } from "three/examples/jsm/controls/TrackballControls.js";
|
|
|
import Line from "../box/object/Line";
|
|
|
import LinePoints from "../box/object/LinePoints.js";
|
|
|
import { LineMaterial } from "three/examples/jsm/lines/LineMaterial.js";
|
|
@@ -268,6 +269,10 @@ export default class Player {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ reset() {
|
|
|
+ this.activeEdges = [];
|
|
|
+ }
|
|
|
+
|
|
|
update = () => {
|
|
|
if (this.floorplanControls.enabled) {
|
|
|
this.floorplanControls && this.floorplanControls.update();
|