Removing Forces From Your World in Box2D Cocos2D

By | March 5, 2011

Hi,

In certain situations you may need to remove all the forces you have applied on different bodies in your box2D world.
Then what to do?
Removing all the forces from the bodies in the box2D world is simple. Just use the single line of code.

yourWorld->ClearForces();

Here yourWorld is your Box2D world. Simple, isn’t it?

🙂

Leave a Reply

Your email address will not be published. Required fields are marked *