I'm about to give up with this, if i raycast and an enemy is on the way, the one in the back don't get any damage.
The answers that i found doesn't work in 2D.
Any other idea? if not i will set the explosion damage to a fix percent.
I tried a lot, raycasting, CircleOverlap, CircleCollider2D , but nothing works...
so frustrating , just need to get the hit.point and calculate the distance.
![Diagram02][1]
[1]: /storage/temp/29027-sin+título-1.jpg
↧