bx-1379-redesign #15

Merged
ksenia_mikhailova merged 124 commits from bx-1379-redesign into dev 2024-09-06 15:39:13 +03:00
2 changed files with 7 additions and 12 deletions
Showing only changes of commit 8ff62ccf74 - Show all commits

View File

@ -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
}
}
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)

View File

@ -1,5 +1,5 @@
import { defineStore } from 'pinia'
const BASE_TIMER = 100
const BASE_TIMER = 10
interface state {
timer_el: any,
timer_func: any,