Skip to content

Commit 1475d12

Browse files
Change rotate head with screen relative value of input
1 parent c6d10e4 commit 1475d12

File tree

1 file changed

+1
-1
lines changed
  • addons/character-controller/example/main

1 file changed

+1
-1
lines changed

addons/character-controller/example/main/player.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func _physics_process(delta):
5454
func _input(event: InputEvent) -> void:
5555
# Mouse look (only if the mouse is captured).
5656
if event is InputEventMouseMotion and Input.get_mouse_mode() == Input.MOUSE_MODE_CAPTURED:
57-
rotate_head(event.relative)
57+
rotate_head(event.screen_relative)
5858

5959

6060
#func _on_controller_emerged():

0 commit comments

Comments
 (0)