11-11-2020, 12:16 PM
(10-11-2020, 09:37 AM)josemendez Wrote: The collision callback gives you a list of all contacts every frame. So you know an actor isn't colliding, when you can't find a contact for that actor. Simple as that .Ah, really simple I thought that collision callback triggers on every collision, that confused me. Now everything works, thank you!
Just keep track of which actors appear in the contact list, and at the end of the callback (right after the foreach(contacts)), any actor that hasn't appeared isn't colliding with anything.