I am trying to make a car with a mounted gun but, before trying to code the rotation following the mouse (think that i dont know how to do it but that dosent matter) i have to test the rotation of it.
This… car is made only with unity parts.
I can rotate the gun horizontaly with the yellow cilinder but for vertical rotation i am using a game object and rotates like this:
Now i group those parts on the wellow cilinder to allow horizontal rotation and happens this:
Do you know how i can fix this or what i am doing wrong? Thank you all