I'm using Bullet and want to take some action once all objects in a dynamic world have reached 0 velocity (or at least a value that's very close).
I was trying to iterate over all of them all the time and when a counter equals
getNumCollisionObjects() then do that action. But it's a complex procedure and I'm beginning to think it's unnecessary.
Is there a better way, perhaps by comparing two frames or a Bullet built-in?