Tank barrel wont follow

When i am hull down or behind z rock why wont my barrel point where i want it to?

Its Because, with the camera’s position, you can see your enemy but your gun stay behind the obstacle (hill, rock, house…).
In standard sniper view, your camera is placed at the end of your gun, when you see your enemy with that camera you can hit him.