Cannon barrel rotation

Hi yall,

I’m making a player controlled cannon, I’ve combined the cannon base and barrel mesh together.

The player can controll the yaw and pitch of the cannon, the problem is that when you rotate the cannon the barrels pitch rotation gets funky, see the video. The barrel is a child of the base

![alt text][1]

https://streamable.com/4rcu0

The problem is that you do not take into account the orientation of the base. Add the canon as a child of the base and use the node AddRelativeRotation or AddLocalRotation. Cant remember the name of the node right now.

HTH

Thanks, using the AddLocalRotation fixed the issue. Cheers!

accept the answer if it helped please