Working on a tank game and I just found a problem with my guns rotation:
Rotation works perfectly when the parent object is level x rotation = 0 however if the tank is at an angle i. e. climbing a hill my system does not work anymore
I have posted some images to visualize how my system works and that is the issue.