From 750ac2247a121bae85f66b9b9c229d34fcbc6af4 Mon Sep 17 00:00:00 2001 From: minsung Date: Wed, 15 Apr 2026 12:04:12 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=B9=B4=EB=A9=94=EB=9D=BC=20=ED=9A=8C?= =?UTF-8?q?=EC=A0=84=20=EB=B0=A9=ED=96=A5=20=EB=B0=98=EC=A0=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 사용자 요청: 마우스 드래그 회전 방향이 직관과 반대라 반전. - yaw: delta_x * 0.005 부호 반전 (+= → -=) - pitch: delta_y * 0.005 부호 반전 (-= → +=) Co-Authored-By: Claude Sonnet 4.6 --- cimery/crates/viewer/src/camera.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cimery/crates/viewer/src/camera.rs b/cimery/crates/viewer/src/camera.rs index dd976cb..9fe51ba 100644 --- a/cimery/crates/viewer/src/camera.rs +++ b/cimery/crates/viewer/src/camera.rs @@ -125,9 +125,10 @@ impl Camera { // ── Interaction ──────────────────────────────────────────────────────── /// Orbit by dragging (delta in pixels, scaled to radians). + /// 사용자 요청: 회전 방향 반전 (yaw·pitch 양쪽 모두). pub fn orbit(&mut self, delta_x: f32, delta_y: f32) { - self.yaw += delta_x * 0.005; - self.pitch = (self.pitch - delta_y * 0.005) + self.yaw -= delta_x * 0.005; + self.pitch = (self.pitch + delta_y * 0.005) .clamp(-std::f32::consts::FRAC_PI_2 + 0.05, std::f32::consts::FRAC_PI_2 - 0.05); }