Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Selecting Individual Particles During Runtime
#2
(06-11-2019, 11:50 AM)3rdcat Wrote: Hello

I was wondering if it is possible to change the properties of individual particles via script during runtime.
I understand from the examples that it is possible to change them collectively, but is choosing specific ones from the index possible? (i.e changing the particle weight of a line of particles on the cloth without affecting others)
Thank you very much

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;
Reply


Messages In This Thread
RE: Selecting Individual Particles During Runtime - by josemendez - 06-11-2019, 01:12 PM