06-09-2017, 08:01 PM
(06-09-2017, 07:38 PM)tbookout Wrote: Does 3.2 have this new method of determining which actor/particle collision occurred on?
If so, please tell is what it is!
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.