bx-1379-redesign #15

Merged
ksenia_mikhailova merged 124 commits from bx-1379-redesign into dev 2024-09-06 15:39:13 +03:00
1 changed files with 4 additions and 4 deletions
Showing only changes of commit 85fd0bd1c0 - Show all commits

View File

@ -264,9 +264,9 @@ watch(() => sidebar.is_open && sidebar.id_clickable, () => {
controls_targetto.value = target_vector; controls_targetto.value = target_vector;
const quaternion = new Quaternion(); const quaternion = new Quaternion();
quaternion.setFromAxisAngle(new Vector3(1, 0, 0), -15 * (Math.PI / 180)); quaternion.setFromAxisAngle(new Vector3(1, 0, 0), -45 * 3 * (Math.PI / 180));
// quaternion.setFromAxisAngle(new Vector3(0, 1, 0), -25 * (Math.PI / 180)); quaternion.setFromAxisAngle(new Vector3(0, 1, 0), -45 * 3 * (Math.PI / 180));
// quaternion.setFromAxisAngle(new Vector3(0, 0, 1), 10 * (Math.PI / 180)); // quaternion.setFromAxisAngle(new Vector3(0, 0, 1), -15 * (Math.PI / 180));
camera_rotatetoto.value = quaternion camera_rotatetoto.value = quaternion
camera_moveto.value = target_vector; camera_moveto.value = target_vector;
@ -310,7 +310,7 @@ onAfterRender(() => {
// (controls.value as any).minDistance = targetDistance.min; // (controls.value as any).minDistance = targetDistance.min;
} }
} }
if (!camera_moveto.value && !controls_targetto.value && camera_rotatetoto.value) { if (camera_rotatetoto.value) {
timer.stopTimer(); timer.stopTimer();
camera.value?.quaternion.slerp(camera_rotatetoto.value, 0.5); camera.value?.quaternion.slerp(camera_rotatetoto.value, 0.5);
camera.value?.quaternion.normalize() camera.value?.quaternion.normalize()