Make hang state resolve faster
This commit is contained in:
parent
5d45119a26
commit
91ead7fb5c
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue