Fix camera yaw and pitch.

This commit is contained in:
Roz K 2022-12-31 22:30:57 +01:00
parent 7c2d3d81ae
commit 8e49c16929
Signed by: roz
GPG Key ID: 51FBF4E483E1C822
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ def update_camera(time, mouse, camera, environment):
camera_yaw = mouse.drag[0] * 0.001
camera_pitch = mouse.drag[1] * 0.001 + pi * 0.25
camera_distance = mouse.wheel * 20.0
camera.set_view(camera_yaw, camera_pitch, camera_distance)
camera.set_view(camera_yaw % tau, camera_pitch % tau, camera_distance)
environment.from_sun(camera.view, sun_direction, sun_power)
def update_tests(time, blob, cube, clouds):