Script updates and simplification

This commit is contained in:
Aaron Franke
2021-01-06 00:39:17 -05:00
parent 6bdbeafca2
commit e73af12f49
7 changed files with 57 additions and 67 deletions

View File

@@ -4,4 +4,4 @@ These demos are all 3D, but otherwise do not have a common theme.
Languages: All are GDScript
Renderers: Truck Town and Physics Tests are GLES 2, the rest are GLES 3
Renderers: Truck Town, Physics Tests, and Waypoints are GLES 2, the rest are GLES 3

View File

@@ -209,7 +209,7 @@ func process_movement(delta):
# Mouse based camera movement
func _input(event):
if event is InputEventMouseMotion && Input.get_mouse_mode() == Input.MOUSE_MODE_CAPTURED:
if event is InputEventMouseMotion and Input.get_mouse_mode() == Input.MOUSE_MODE_CAPTURED:
rotate_y(deg2rad(event.relative.x * MOUSE_SENSITIVITY * -1))
camera_holder.rotate_x(deg2rad(event.relative.y * MOUSE_SENSITIVITY))