W
W
wolf-98302015-02-22 09:07:17
Java
wolf-9830, 2015-02-22 09:07:17

How to rotate a texture?

Here I have a planet, how to make it rotate? (All in 2D)
According to the tutorials, I tried this:

batch.draw(image,rect.x,rect.y,rect.width/2,rect.height/2,rect.width,rect.height,1,1,angle,1, 1, 1, 1, false,false);

And the image just doesn't show up, why?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question