Quick 2d physics collision enter/exit question

Hi I was wondering if it’s possible to have 2 collision enter calls on the same object by the same object without a collision exit call? Maybe a bug if it does occur?

Are you talking GameObject, or Collider, or something else? I don’t think it should happen for a single collider, I know it can happen to a GameObject.

Ah thanks for the reply. Each gameobject has a 2d collider attached and a rigidbody2d attached. And a script attached to handle the callbacks.

In that case, yeah, I don’t think you should be seeing two enters without an exit.

Ah thanks for that! Usually when I see such a basic problem I figure it must be something I’m doing wrong since the physics 2d feature has been out for a while now and people would have surely found it…maybe I’m still doing something wrong?

Heheh, always something to think about. So, no child game objects with colliders? Is there anything activating or deactivating colliders based on the collision?

Nah it’s pretty simple. I increment a counter on collision enter and decrement the counter on exit. So I figure it should never say “2”. Also one is a circle collider and the other is a concave polygon collider.
Also unrelated the forum is underlining perfectly spelled words lol…driving me crazy!

Concave polygon, eh? So maybe it’s getting two calls for hitting two different edges without having left the first one yet? I don’t know, I’m just speculating.

Thank you! I bet that’s it. Can you place a tip button next to your name here?
One thing though I wonder if that’s proper behavior? I’m trying to imagine the ball rolling down a hill where it’s on one edge then it enters the next edge while still on the current edge therefore generating a new collision enter. I wonder if that should generate a new collision enter?
Great thank you very much!