Hi.
I have a simple question.
I have a “ground” layer with a Ground Object with an EdgeCollider to perform my ground (like Metal Slug).
Over this layer I have the others layer. One of them is “enemies”.
My enemy has a 2dBoxCollider and a 2d rigid boy.
I whant check if the “punch” of player, hit the Box Collider of the enemy.
Unfortunally the method return only and always “ground” object.
Cleary the engine is doiing a correct analysys because the enemy is touching the ground (otherwise it would fall).