06-09-2017, 10:01 PM
(06-09-2017, 08:01 PM)josemendez Wrote: Yes!
Not documented yet, but: given a contact, you can simply do this:
Code:ObiSolver.ParticleInActor pa = solver.particleToActor[contact.particle];
The ParticleInActor struct contains the actor to which the particle belongs, as well as the index of that particle in the actor's arrays.
Awesome!
My hack was a list of which actors I cared about, and particle range they contained.. Will gladly switch to using this method.