I believe this is a fairly simple question but I have no idea where to start.
I’m trying to implement a feature where an entity (such as an image) can be flicked across the screen such that it decelerates over time based on an initial speed (non-zero) and coefficient of friction.
In other words, given an initial velocity and constant friction, how can I programmtically determine where an object will be at time t??
Feel free reply using pseudo-code or any programming language you’re comfortable with.
Thanks guys
The equation is
where,
To account for friction your
awill be (on a horizontal surface)where,