How can I rotate a Box2D body without applying a force to it?
Pergunta
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.
Solução
Use SetTransform
, you can specify the position and orientation of your object.
Outras dicas
Maybe something like a matrix rotation will help you
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow