I have a 2D planet defense game with asteroid prefabs I’d like to destroy when hit by a projectile.
The projectile has an EdgeCollider2D with “isTrigger” checked and the asteroids have an EdgeCollider2D and a RigidBody2D and is of Dynamic body type. I’ve attached pictures of the components of each as well as there collision / trigger scripts for reference.
Something interesting to note as well is that the asteroids do not collide with one another, however they do collider with the planet object which has only a CircleCollider2D.
I’ve tried adding a RigidBody2D to the projectile and using OnCollisionEnter2D, changing body type to kinematic, resetting z-positions, and double checking the correct layer names and script references!
Any thoughts are much appreciated!