(20-09-2020, 07:20 PM)josemendez Wrote: Its pretty straightforward:Okay i got this :
var particleInActor = solver.particleToActor[contact.particle];
GameObject go = particleInActor.actor.gameObject;
https://i.imgur.com/fLyaind.png
Also this is being called constantly even when nothing is happening in the scene because its touching the terrain(floor). I can't imagine this being performative when this script is on multiple objects all wanting to know when they've been collided with. Surely theres some other solution you have to recreate the collision system such as OnCollisionEnter() ? Or is this not a big performance hit as Unitys collision system already did this?