How to rotate a body object using box2d and scene2d in libgdx with Java


I want it to be moving in a straight line and at the same time turning. I already resolved to move in a straight line with this instruction:

mBody.setLinearVelocity(5, 0);

But now I want it to turn. Try with setTransform but nothing moves.

asked by Doble-L 24.11.2018 в 03:33

0 answers