I'd like to make my asteroids rotate constatly in my android game but I have completely no idea where to start.
I know I can rotate canvas, but I can't find a mathematical formula where to draw the object after the canvas is rotated by any angle, so that it is where it should be after I restore canvas.
I mean I figured it out only for 90, 180, 270 degrees, can you help me a bit? I just need a hint.
Thanks for you help!
EDIT: I finally figured it out just with canvas.rotate()