Hey guys, i was wondering on is there another trick on how to detect stacking 2d colliders beside raycasting ?
I make a simple 2d platformer game, where the enemies physics layers allows them to stacked on each other, when the player on the other side shoot em with bullet, all of them got hit by the bullet when they stack to each other. What i want is to hit only the front one, and when the front one dies, it will hit the next one behind it and so on
Is there any simple and efficient method to overcome this?
Thanks
Thanks