behdad / box2d

Automatically exported from code.google.com/p/box2d
2 stars 12 forks source link

b2Body::SetFixedRotation not working #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. create a body, with shapes and set fixed rotation to true
2. during runtime, after b2World->Step() call b2Body::SetFixedRotation

the body should rotate if an impulse/force is applied to it, however it will 
not.

Box2D Version 2.0.2 running on windows vista, compiled with visual c++ 2008

Original issue reported on code.google.com by Harries....@gmail.com on 4 Sep 2009 at 6:07

GoogleCodeExporter commented 9 years ago
This function was a contribution and has been removed some time ago. You can 
get the 
effect of fixed rotation by setting the mass properties with I == 0.

Original comment by erinca...@gmail.com on 19 Sep 2009 at 8:20

GoogleCodeExporter commented 9 years ago
However, what if I have a non static body that I dont want to rotate?

Original comment by Harries....@gmail.com on 20 Sep 2009 at 5:15