First let me give you the context of what I’m doing: I’m creating a
special kind of collision system for particles. I’m creating a particle cloud
to which I attached a scripted event evaluated on every frame that calls a
custom command to verify which particles collide. If a certain particle(s) does
collide, the custom command writes information to a second clouds’ userDataBlob,
and puts an ageLimit value to it’s current age value to make that particle disappear.
Then the second cloud has a custom operator that reads it’s userDataBlob and if
theirs information in it, it adds the new particle(s) and the clears the userDataBlob
to await new information. So that’s basically copying particles from one cloud
to another depending on collision calculations.
But here’s my problem: I can copy the ptype from one cloud to the other while
creating this second cloud before I do the simulation. But I use particle
instancing and in my instance group there might be more then one object so how
do I know for each particle, which object it’s instantiating so I can copy that
information through the userDataBlob and make sure that the new particle on the
second cloud instantiates the right object?
Mathieu Leclaire
R&D Programmer
Hybride Technologies