Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Figure out what Actor was collided with
#4
(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.
Reply


Messages In This Thread
RE: Figure out what Actor was collided with - by josemendez - 06-09-2017, 08:01 PM