fix player camera stuck when pliloting

This commit is contained in:
Gary Steven Keough 2024-12-16 22:01:44 -05:00
parent 51dc6406a8
commit e2a6d529b6

View File

@ -71,7 +71,6 @@ func _input(event):
func _physics_process(delta: float) -> void: func _physics_process(delta: float) -> void:
if !is_network_authority: return if !is_network_authority: return
if is_piloting and current_ship != null: if is_piloting and current_ship != null:
global_rotation.y = current_ship.global_rotation.y
velocity = Vector3.ZERO + _gravity(delta) velocity = Vector3.ZERO + _gravity(delta)
else: else:
velocity = walk(delta) + _gravity(delta) + _jump(delta) velocity = walk(delta) + _gravity(delta) + _jump(delta)