Fix camera yaw and pitch.
This commit is contained in:
parent
7c2d3d81ae
commit
8e49c16929
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user