How to check whether your body is moving or it is in rest in box2D iPhone or ANDROID?
To check whether your body is in rest or not you need to check whether the body->IsAwake() function returns true.IF yes then your body is at rest. Take a look at the following snippet.