Make hang state resolve faster

This commit is contained in:
blujai831 2025-04-01 12:15:32 -07:00
parent 5d45119a26
commit 91ead7fb5c
No known key found for this signature in database
GPG Key ID: DDC31A0363AA5E66
1 changed files with 2 additions and 2 deletions

View File

@ -295,7 +295,7 @@ func _handle_freeze_lerp_request(delta: float) -> void:
global_position = lerp(
global_position,
_freeze_lerp_target,
1.0 - 0.01**delta
1.0 - 0.0001**delta
)
if (global_position - _freeze_lerp_target).length() < height*0.03125:
global_position = _freeze_lerp_target
@ -1179,7 +1179,7 @@ func _on_hit_state_tick(delta: float) -> void:
func _on_hang_state_tick(delta: float) -> void:
global_basis = global_basis.slerp(
Basis.looking_at(-wall_normal, ground_normal),
1.0 - 0.01**delta
1.0 - 0.0001**delta
)
if jump_impetus && !_freeze_lerp_requested:
force_change_state(&'pull-up')