With the addition of one more object and a single script, we can start shooting at our targets.
GameObjectto our tank. Rename it to
MuzzlePointand make it a child of the cannon's pivot point object. Once done, position it at the end of the cannon so the blue arrow points away from the tank, along the same direction as the cannon. This will be the point where our bullets will come from.
0.2for each axis and give it a red material. This way it can be more easily seen, without being completely ...