fix: 카메라 회전 방향 반전

사용자 요청: 마우스 드래그 회전 방향이 직관과 반대라 반전.
- yaw:   delta_x * 0.005 부호 반전 (+= → -=)
- pitch: delta_y * 0.005 부호 반전 (-= → +=)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
minsung
2026-04-15 12:04:12 +09:00
parent 4b8a5db4a7
commit 750ac2247a

View File

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