Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Selecting Individual Particles During Runtime
#3
(06-11-2019, 01:12 PM)josemendez Wrote: Hi,

I'm not sure I understand your question. You can change particle properties collectively or individually, as long as you have their indices. For instance, to change the velocity of particle "i" in the actor:

Code:
int indexInSolver = actor.particleIndices[i];
solver.velocities[indexInSolver] = Vector3.zero;

Hello,

Thanks for the reply.
I was wondering how to obtain the specific indice which a particle is allocated to.
For example, if I use the cloth sheet from the example which has... 289 particles, how would I know which particle corresponded to which indice?
Reply


Messages In This Thread
RE: Selecting Individual Particles During Runtime - by 3rdcat - 06-11-2019, 01:18 PM