Let me further explain my question. Let's say my Velocity is at -5.4028000 I would love it to return to zero like so.
-5.4,
-5.3,
-5.2
...
-0.2,
-0.1,
0
Same with positive numbers. For them to return to 0, In groups of 0.1's. It would return to 0, every time it was run. Because this will be placed in a update loop.
Things I have tried:
if(vx > 0)
{
vx-=0.1;
}
if(vx < 0)
{
vx+=0.1;
}
But this just locks my VX into:
VX:0.04999999
OR
VX:0.09999999