Have you searched the forum? Rotating game objects has been discussed several times:
And I’ve created an example as well: publicexamples/examples/rotate_and_move at master · britzl/publicexamples · GitHub