I am currently trying to make a game that plays similarly to Limbo. Basically, when things hit you, I want it to knock you back. However, this doesn’t work with the current movement system. How movement is currently implemented is by directly altering the player’s velocity. Obviously, this doesn’t work you want the player to be effected by physics.
I can think of a few janky solutions to this, but they would almost certainly be inconsistent and result in bugs, such as adding an initial force to a player when given input until it reaches max velocity. Is there any sturdy, clean solution that I can use to solve this? Thanks.