merge lobby-system and player-character into develop #4
@@ -67,8 +67,7 @@ func _input(event):
|
|||||||
if is_multiplayer_authority():
|
if is_multiplayer_authority():
|
||||||
if event is InputEventMouseMotion:
|
if event is InputEventMouseMotion:
|
||||||
# Rotate the CharacterBody3D around the Y-axis for horizontal look
|
# Rotate the CharacterBody3D around the Y-axis for horizontal look
|
||||||
#rotate_y(-event.relative.x * mouse_sensitivity)
|
rotate_y(-event.relative.x * mouse_sensitivity)
|
||||||
head.rotate_y(-event.relative.x * mouse_sensitivity)
|
|
||||||
|
|
||||||
# Rotate the Camera3D around its local X-axis for vertical look
|
# Rotate the Camera3D around its local X-axis for vertical look
|
||||||
var change = -event.relative.y * mouse_sensitivity
|
var change = -event.relative.y * mouse_sensitivity
|
||||||
|
|||||||
Reference in New Issue
Block a user