123
parent
03d75fd3ab
commit
5e70124cb4
|
@ -77,9 +77,6 @@ let objArr = [];
|
|||
let objM = [];
|
||||
// 监测设备
|
||||
let warnSets = [];
|
||||
// 设置漫游索引
|
||||
let currentIndex = 1;
|
||||
let romeObj = []
|
||||
// 设置巡检
|
||||
let checkArr = [];
|
||||
let checkindex = 0;
|
||||
|
@ -621,6 +618,9 @@ const check = () => {
|
|||
console.log('物体坐标', checkArr[checkindex].getWorldPosition(new THREE.Vector3()));
|
||||
|
||||
if (checkindex < checkArr.length ) {
|
||||
// 显示标签
|
||||
addLabel(checkArr[checkindex], checkArr[checkindex].isPass);
|
||||
|
||||
var checkPosition = checkArr[checkindex].getWorldPosition(new THREE.Vector3());
|
||||
gsap.to(camera.position, {
|
||||
x: checkPosition.x,
|
||||
|
@ -629,8 +629,7 @@ const check = () => {
|
|||
duration: 10,
|
||||
ease: 'power1.inOut',
|
||||
onComplete: () => {
|
||||
// 显示标签,已经检查通过
|
||||
addLabel(checkArr[checkindex], checkArr[checkindex].isPass);
|
||||
|
||||
if (checkindex == checkArr.length - 1) { // 巡检结束
|
||||
checkComplete();
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue