autorotate center
This commit is contained in:
parent
300f6d4fff
commit
dc4dc1c426
|
@ -47,8 +47,7 @@ setInterval(() => {
|
|||
} else if (timer.value == 0 && !(controls.value as any).autoRotate && (controls.value as any).enabled) {
|
||||
pause()
|
||||
if (controls.value) {
|
||||
camera.value?.position.set(10, (controls.value as any).minDistance * 0.75, (controls.value as any).minDistance);
|
||||
camera.value?.lookAt(0, 0, 0);
|
||||
(controls.value as any).target = new Vector3(0, 0, 0);
|
||||
(controls.value as any).autoRotate = true;
|
||||
(controls.value as any).autoRotateSpeed = 1;
|
||||
}
|
||||
|
|
|
@ -46,4 +46,5 @@ export const useLoading = defineStore('loading', {
|
|||
}
|
||||
}, 1000)
|
||||
},
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue