![]() |
Help Obi.ObiCollider.idToCollider gone in update - Printable Version +- Obi Official Forum (https://obi.virtualmethodstudio.com/forum) +-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html) +--- Forum: Obi Rope (https://obi.virtualmethodstudio.com/forum/forum-4.html) +--- Thread: Help Obi.ObiCollider.idToCollider gone in update (/thread-2616.html) |
Obi.ObiCollider.idToCollider gone in update - VirtualCucumber - 05-12-2020 I just updated from 5.3 and so far the changes look amazing, especially with the back-ends but I used: Code: Component collider; RE: Obi.ObiCollider.idToCollider gone in update - josemendez - 07-12-2020 (05-12-2020, 11:21 PM)VirtualCucumber Wrote: I just updated from 5.3 and so far the changes look amazing, especially with the back-ends but I used: Hi there, contacts.Data[i].other is now just an index into the ObiColliderWorld's colliderHandles array. Retrieving a collider no longer involves looking it up in a dictionary. Quoting from the manual: http://obi.virtualmethodstudio.com/tutorials/scriptingcollisions.html Retrieving the collider involved in a contact You can get a reference to the collider involved in any contact by doing: Code: ObiColliderBase collider = ObiColliderWorld.GetInstance().colliderHandles[contact.other].owner; |