How to find out a game objects rotation

So I was making a version of a shoot em up where you control the rotation of the sprite with the mouse and push the left key to move forward, I’ve figured out a way using some (fairly dodgy) maths but to get it working I need to be able to find out the rotation of the game object, I’ve tried a couple of things none of them have worked though, any ideas. Also any ideas on how to move a game object forward in a simpler way that I’ve missed, thanks!

To clarify, the Z axis specifically.

Privacy & Terms