mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-06 14:10:55 +03:00
Script updates and simplification
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user