reset motion velocity on spawn

Fixes #118
feature-rocketlauncher
nebunez 2021-12-25 01:49:41 -05:00
parent 3f760665b2
commit 72ece14ed1
1 changed files with 1 additions and 0 deletions

View File

@ -441,6 +441,7 @@ func update_color(color) -> void: #change player's wolrldmodel color
func _physics_process(delta):
if dead: # workaround for Godot player destruction crash
motion_velocity = Vector3.ZERO
gravity_vec = Vector3.ZERO
return
if not is_multiplayer_authority():