How to get current moving speed of the box2d object

box2d, cocos2d-iphone

Solution

b2Vec2 vel = body->GetLinearVelocity();

Problem

I apply force to the b2body, but would like to know is there a way to know what speed the b2body is after applyforce/applylinearimpulse? ``` b2Body* car; b2Vec2 force = b2Vec2(0,100); car->ApplyForce(force, car->GetPosition()); ```

Original source