I'm working on a game using Libgdx, I've create my world, bodies, fixtures etc. Everything is functional everything is working perfectly but the problem is my body just can left-right-up or down and I do not want to just do this, I want my body go toward to its front side, so it will be like that; User press "D" and Body (player) rotate around and user press "W" body should go wherever its looking direction.
The picture maybe will tell you what is the problem more clearly.
I do not think to share any code blocks because I didn't write any specific code, I just wrote body properties etc. you know. But here is my update method;
public void update(float dt) { if (Gdx.input.isKeyPressed(Input.Keys.UP)) { player.getBody().setLinearVelocity(0f, 0.5f); } if (Gdx.input.isKeyPressed(Input.Keys.D)) { player.getBody().setAngularVelocity(-0.5f); } And if it is possible, I don't want to use body.setTransform() method for move my bodies.

