瓶中沙 2024-01-09 21:43:24 +08:00
parent 03d75fd3ab
commit 5e70124cb4
2 changed files with 4 additions and 5 deletions

BIN
dist.7z Normal file

Binary file not shown.

View File

@ -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 {