05-12-2020, 11:21 PM
(This post was last modified: 05-12-2020, 11:22 PM by VirtualCucumber.)
I just updated from 5.3 and so far the changes look amazing, especially with the back-ends but I used:
This is scrapped in the new updates. I see the new CollisionEventHandler class but I'm wondering how can get the other collider from the contacts.Data[i].other field.
Code:
Component collider;
if (ObiCollider.idToCollider.TryGetValue(e.contacts.Data[i].other,out collider)){
// Function to do when particle collides with collider
}