How to make static/non rotating bodies in Box2D ?

By | April 26, 2012

Hi,

Sometimes you may need to make some of your b2Body non rotating or static while using Box2D physics engine.
For making any body static use the following line of code.

UrbodyDef.fixedRotation = true;

🙂

Leave a Reply

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