How can I rotate a Box2D body without applying a force to it?
Question
Anyone know? All I can see is ApplyTorque and SetAngularVelocity, I want to just rotate the object before adding it to the simulation, for example: so I have one crate tilted up against a wall and another flat.
Solution
Use SetTransform
, you can specify the position and orientation of your object.
OTHER TIPS
Maybe something like a matrix rotation will help you
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow