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