|
@@ -428,7 +428,23 @@ export default class Player {
|
|
|
}
|
|
|
|
|
|
if (type === 2) {
|
|
|
- console.log("data2", data);
|
|
|
+ const { activeEdges, vir_lines, vir_markers } = data;
|
|
|
+ activeEdges && (this.activeEdges = activeEdges);
|
|
|
+ if (vir_lines && Array.isArray(vir_lines)) {
|
|
|
+ this.renderLines = vir_lines;
|
|
|
+ vir_lines.forEach((line) => {
|
|
|
+ const finishLine = new LinePoints(line, 0, this.matLine);
|
|
|
+ this.scene.scene.add(finishLine);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (vir_markers && Array.isArray(vir_markers)) {
|
|
|
+ this.renderMarkers = vir_markers;
|
|
|
+ vir_markers.forEach((pos) => {
|
|
|
+ const p = new THREE.Vector3().fromArray(pos.point);
|
|
|
+ const marker = new Marker(p);
|
|
|
+ this.scene.scene.add(marker);
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
reset() {
|