Physics - how to know when things are mostly done moving?

I'm sure this has been asked before, but I couldn't seem to find it. What is the best way to determine when things are mostly done moving?

Use
vx, vy = body:getLinearVelocity()

And check if vx and vy are below a threshold value that you set, if they are, just set it to 0 with body:setLinearVelocity(0,0) and it's done.

views:1456 update:2011/9/25 12:40:18
corona forums © 2003-2011