fix player camera stuck when pliloting
This commit is contained in:
parent
51dc6406a8
commit
e2a6d529b6
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user