diff --git a/front/src/components/Promo/load_models.vue b/front/src/components/Promo/load_models.vue index 7977fde..b7838df 100644 --- a/front/src/components/Promo/load_models.vue +++ b/front/src/components/Promo/load_models.vue @@ -61,9 +61,7 @@ const pointerTexture = await useTexture({ const set_moveto = (obj: smooth, value: Vector3 | Quaternion | undefined) => { obj.value = value - if (obj.value == undefined) { - obj.count = COUNT - } + obj.count = COUNT } const setEnv = async () => { @@ -274,14 +272,11 @@ watch(() => sidebar.is_open && sidebar.id_clickable, () => { target_vector.y = raw_dataStore.data.min_distance > 50 ? raw_dataStore.data.min_distance / 10 : 1; const quaternion = new Quaternion(); - // quaternion.setFromEuler(new Euler( - // -45 * 1 * (Math.PI / 180), - // 35 * 1 * (Math.PI / 180), - // 35 * 1 * (Math.PI / 180) - // )); - quaternion.setFromEuler(new Euler(0, 0, 0).setFromVector3(target_vector)) - // quaternion.setFromAxisAngle(new Vector3(0, 1, 0).normalize(), 45 * 4 * (Math.PI / 180)); - // quaternion.setFromAxisAngle(new Vector3(0, 0, 1).normalize(), -45 * 4 * (Math.PI / 180)); + quaternion.setFromEuler(new Euler( + -45 * 1 * (Math.PI / 180), + 35 * 1 * (Math.PI / 180), + 35 * 1 * (Math.PI / 180) + )); set_moveto(smooth_rotate, quaternion) set_moveto(smooth_target, target_vector) diff --git a/front/src/stores/timer.ts b/front/src/stores/timer.ts index bc0195c..454e3e8 100644 --- a/front/src/stores/timer.ts +++ b/front/src/stores/timer.ts @@ -1,5 +1,5 @@ import { defineStore } from 'pinia' -const BASE_TIMER = 100 +const BASE_TIMER = 10 interface state { timer_el: any, timer_func: any,