Hello friends, I'm coding a simple tank game in Unity. Let me explain what I want to do and what I've done so far. Firstly, when the left and right buttons on the screen are clicked with the mouse, the tank's barrel rotates. So far, no problem. However, when I shoot into the red area, I want a white sphere to come out of the barrel and hit the red wall, causing the blue cube, blue cylinder, and blue sphere to shatter. Similarly, when I shoot into the green area, I want the sphere that comes out of the barrel to hit the green wall and accumulate spheres at the edge of the wall. I've tried a few things myself, but I haven't found a complete solution. I'm open to your ideas on how I can achieve this logic. Can you help me with this problem?