What is the simplest way to create a weapon recoil on a 8 direction behavior ?
I'm thinking about it in an "additive" way. Like if the player is moving at speed 200 and shoots in the same direction at a power 100, its speed will be decreased to 100 and will progressively increase back to 100. If the player is moving at speed 70, then its speed would decrease to -30.
I think it has something to do with "dt" ?
I'd also like to do the same on a bullet behavior