How to make static/non rotating bodies in Box2D ?
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. 🙂
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. 🙂
Hi, Some times while game building via Box2D Physics Engine, you may need to find out whether your bodies (from b2Body) are moving or not. Use the following sample of code to find out whether the given b2Body is moving or not. 🙂