Compare commits

...

2 Commits

Author SHA1 Message Date
瓶中沙 08b2ed19e6 123 2024-01-09 18:46:51 +08:00
瓶中沙 16e913b4df 123 2024-01-09 18:08:47 +08:00
2 changed files with 3110 additions and 2952 deletions

File diff suppressed because one or more lines are too long

View File

@ -573,7 +573,8 @@ const removeLabel = () => {
//
const setBottom = () => {
var target = scene.getObjectByName('tanghua_1F');
var target = scene.getObjectByName('tanghua_2F');
centerSelectedGroup(target);
console.log(target);
if (isRemoveBottom.value) {
target.visible = false;
@ -672,6 +673,7 @@ const changeMap = (img) => {
}
//
const check = () => {
if (currentIndex < romeObj.length) {
// .getWorldPosition()
var checkPosition = checkArr[checkindex].getWorldPosition(new THREE.Vector3());
@ -686,13 +688,16 @@ const check = () => {
if (checkindex == romeObj.length) { //
checkComplete();
}
setTimeout(() => {
check()
}, 1000)
check()
}
});
//
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 +712,8 @@ const check = () => {
ease: "power1.inOut",
onComplete: () => {
//
// addLabel(checkArr[checkindex], checkArr[checkindex].isPass);
},
});
checkindex++;
@ -716,8 +723,10 @@ const check = () => {
//
const checkComplete = () => {
toHomeView();
// checkindex = 0;
bimStore().setCheckArr(romeObj);
emit('checkComplete', romeObj);
return;
}
</script>