Hello,
I’m trying to achieve a sliding effect with coins. The goal is to have it so that when I collide with a chest, which is already setup, coins will spew out in alternative directions and slowly slow down, but in a sliding type of way. I know how to achieve the random directions, but the sliding effect? Given my current setup, below, what algorithm would work correctly?
I have everything on a Vector2 velocity plane. I set the coin velocity to something, then update it with velocity.x *= DAMP; (DAMP is equal to about 0.2f). This doesn’t create a sliding effect, but rather an abrupt stop. In particular case, I’m applying 25.0 towards the velocity. Lower did not work. How can I achieve a slide effect?
Thanks!