![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Hammo |
How would I convert the below code in Godot 4 to achieve the same result?
func apply_horizontal_deceleration(delta : float) -> void:
velocity.x = lerp(0, velocity.x, pow(2, -40 * delta))
Thnak you!
What results are you getting? Neitherlerp
nor pow
functions should not differ between versions.
aXu_AP | 2022-09-17 04:27