Question by
Teh_K · Oct 24, 2018 at 07:22 PM ·
collision detection2d-physics
What's the difference between Collider2D.GetContacts() and Collider2D.OverlapCollider()
Does anyone know the finer details/differences between the following methods:
public int GetContacts(Collider2D[] colliders);
public int OverlapCollider(ContactFilter2D contactFilter, Collider2D[] results);
I've come across a peculiar scenario where GetContacts() does not return a contact I'm expecting, yet OverlapCollider() does, even using a default(ContactFilter2D).
Comment