Invert stick y direction

This commit is contained in:
hodasemi 2024-09-01 09:27:53 +02:00
parent f8d029b18c
commit ba0d30f6d6

View file

@ -89,7 +89,7 @@ impl CameraControl {
) -> Result<()> {
self.rotation = Deg((self.rotation.0 + (stick.x * factors.x)) % 360.0);
self.arc = Deg(clamp(
self.arc.0 + (stick.y * factors.y),
self.arc.0 - (stick.y * factors.y),
CameraControl::MIN_PITCH,
CameraControl::MAX_PITCH,
));