I’m been trying to create some nice ice physics for the project I’m working on (yes, the one still in my signature).
Something like this:
(start at 4:20)
I’ve tried a variety of things. I am aware that I can just apply force to achieve a similar effect, but I want to make a general piece of code for this that only uses linear velocity (and grabs friction from the platform properties). My most successful method was using “steps”. I split the magnitude of the velocity vector, and added it to the objects current velocity every frame (so it would start slow, and then get faster; an arithmetic sequence). However; I’m not quite sure how to limit the speed, and how to go about actually making the object stop.
Anybody have a good way of achieving this?