I made a little project with a car moving around on a hill. The idea is to have the car angle adapt to the angle of the terrain. It was working great until I introduced the Z axis rotation. The rotation works and everything, but the car doesn't go forward anymore like it should.
I've been looking at the car->getRotation().Y and it seems to be going all crazy. When my car rotates the Y takes these values :

I have no idea why :O, is there a way I can calculate the Y rotation like it use to be before the Z rotation was added? :
