修改初始化
This commit is contained in:
@@ -9,7 +9,7 @@ import {
|
||||
import { saveState, resetState } from "./viewBack";
|
||||
import addFunction from "./addEvent";
|
||||
import { addEquipment, removeEquipment } from "./editEquipment";
|
||||
import tunnelModeInit from "./tunnelInit"
|
||||
import previewtunnelModeInit from "./previewTunnelInit"
|
||||
import { Group } from "three/examples/jsm/libs/tween.module";
|
||||
export default class Demo {
|
||||
// 摄像机看向位置
|
||||
@@ -27,7 +27,7 @@ export default class Demo {
|
||||
this._resetState = resetState;
|
||||
this.addEquipment = addEquipment;
|
||||
this.removeEquipment = removeEquipment;
|
||||
this.tunnelModeInit = tunnelModeInit;
|
||||
this.previewtunnelModeInit = previewtunnelModeInit;
|
||||
|
||||
// 外部可添加函数
|
||||
this.addFunction = addFunction;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
export default function tunnelModeInit() {
|
||||
export default function previewtunnelModeInit() {
|
||||
|
||||
for (const item of this.tunnelConfigEquipment) {
|
||||
//使用api取拿到附着点
|
||||
let pointmodel = this.scene.getObjectByName(item.pointName)
|
||||
Reference in New Issue
Block a user