Original Post
I've been working on a 2D Mini-Golf game but I'm getting stuck on decelerating the ball after it's been hit. My research has lead me to this formula: Deceleration = (Original Velocity - Final Velocity) / Time I've plugged this into my code, however I'm confused on a couple things as it's not working properly. 1) Final velocity is zero right? I want the ball to stop. 2) Time: Is this time since the last frame, or time elapsed since the ball was hit? 3) Deceleration: What do I do with the deceleration? Do I multiply the velocity by it? Is the Deceleration the new velocity? I'm having a hard time grasping the concepts. When I tried to do it on my own, I was just subtracting 10% of the current speed, which obviously never got to 0. So can someone explain simply ball-rolling deceleration? I don't care about grass or wind friction. Thanks.