How can I rotate a Box2D body without applying a force to it?
Anyone know? All I can see is ApplyTorque and SetAngular开发者_如何学编程Velocity, 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.
Use SetTransform
, you can specify the position and orientation of your object.
Maybe something like a matrix rotation will help you
精彩评论