I\'m implementing the scrolling behaviour of a touch screen UI but I\'m too tired in the moment to wrap my mind around some supposedly trivial piece of math:
I would cut down velocity as something like v=v*0.9
Then i would have a velocity which is considered the stopped velocity. This way the object would come to rest eventually and not continue consuming resources as moving.
so something like
for(v=startingVelocity;v<1.0;v*=0.9)
{
x+=v;
}