velocity is reset upon respawning

This commit is contained in:
Persephone Bubblegum-Holiday 2025-08-20 16:32:29 -07:00
parent 3fcee8f5fc
commit 0e8d89aa5f

View file

@ -69,6 +69,9 @@ func _unhandled_input(event: InputEvent) -> void:
$DebugMenu.visible = !$DebugMenu.visible
elif event.is_action_pressed(&"freeroam_respawn"):
self.position = startPosition
walk_vel = Vector3(0, 0, 0)
jump_vel = Vector3(0, 0, 0)
grav_vel = Vector3(0, 0, 0)
elif event.is_action_pressed(&"freeroam_flashlight_zoom_in"):
if ($Camera/Flashlight.visible):
if ($Camera/Flashlight.spot_angle > 2):