Momentum for a First Person Controller in Godot 4
28. Duben 2024 v 22:24
My First Person Controller (CharacterBody3D
) currently has no momentum at all. By the way, I measure my movement speed in the debug panel (hotkey ~) with velocity.length()
and when I get pushed by one of the platforms (see this video), my speed stays at 0 while I'm being pushed, which isn't how it supposed to be. What would be the best way to add a momentum/inertia feature and measure my current speed at all times?
Source: https://github.com/CryptoMares/FPS-Player-Controller
Thanks!