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:
@@ -125,9 +125,10 @@ impl Camera {
|
|||||||
// ── Interaction ────────────────────────────────────────────────────────
|
// ── Interaction ────────────────────────────────────────────────────────
|
||||||
|
|
||||||
/// Orbit by dragging (delta in pixels, scaled to radians).
|
/// Orbit by dragging (delta in pixels, scaled to radians).
|
||||||
|
/// 사용자 요청: 회전 방향 반전 (yaw·pitch 양쪽 모두).
|
||||||
pub fn orbit(&mut self, delta_x: f32, delta_y: f32) {
|
pub fn orbit(&mut self, delta_x: f32, delta_y: f32) {
|
||||||
self.yaw += delta_x * 0.005;
|
self.yaw -= delta_x * 0.005;
|
||||||
self.pitch = (self.pitch - delta_y * 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);
|
.clamp(-std::f32::consts::FRAC_PI_2 + 0.05, std::f32::consts::FRAC_PI_2 - 0.05);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user