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