1 answer · asked · Lesson: Publishing the Game · Course: Developing a Tower Defense Game

Sphere Collider on guns conflict with each other

Seems as though at times the guns fire and stop at the sphere collider of a near by gun. Sometimes causing them to be stuck firing at the same point constantly where the sphere colliders intersect. Everything else seems to work perfectly and this rarely happens.

  • Okay I solved my own problem and thought I might share it. I put the turrets on their own layer and made them ignore their own layer in the Physics > Layer Collision Matrix. This didn't solve my problem until I unchecked Queries Hit Triggers.