Skip to content

Commit f2f47e9

Browse files
committed
Make mouse movements slower
1 parent 6d6abfc commit f2f47e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

HCraft/World/Camera.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ updateCamera dt = do
6262

6363
-- Compute new parameters
6464
let aspect = fromIntegral w / fromIntegral h
65-
dx = fromIntegral (my - (h `shiftR` 1)) * dt
66-
dy = fromIntegral (mx - (w `shiftR` 1)) * dt
65+
dx = fromIntegral (my - (h `shiftR` 1)) * (dt * 0.2)
66+
dy = fromIntegral (mx - (w `shiftR` 1)) * (dt * 0.2)
6767
rx' = max (min (rx + dx) (pi / 2 - abs dx)) (-pi / 2 + abs dx)
6868
ry' = ry - dy
6969
rz' = rz

0 commit comments

Comments
 (0)