瓶中沙 2024-01-09 18:08:47 +08:00
parent 0fddcc3aed
commit 16e913b4df
1 changed files with 12 additions and 5 deletions

View File

@ -686,13 +686,16 @@ const check = () => {
if (checkindex == romeObj.length) { //
checkComplete();
}
setTimeout(() => {
check()
}, 1000)
}
});
//
addLabel(checkArr[checkindex], checkArr[checkindex].isPass);
var pos1 = new THREE.Vector3( camera.position );
var pos2 = new THREE.Vector3( checkPosition );
var distance = pos1.distanceTo(pos2);
console.log(12354, distance);
let nextObj;
if (checkindex == checkArr.length - 1) {
nextObj = checkArr[0].getWorldPosition(new THREE.Vector3())
@ -707,6 +710,8 @@ const check = () => {
ease: "power1.inOut",
onComplete: () => {
//
// addLabel(checkArr[checkindex], checkArr[checkindex].isPass);
},
});
checkindex++;
@ -716,8 +721,10 @@ const check = () => {
//
const checkComplete = () => {
toHomeView();
checkindex = 0;
bimStore().setCheckArr(romeObj);
emit('checkComplete', romeObj);
return;
}
</script>