Closed LecodeMV closed 3 years ago
PropertyNodes are shared between all particles of an emitter. Your example would involve all particles fading from white to a constantly changing shared color, would it not?
Indeed...Would that be feasible to make each particle have its own randomized value ?
It should be feasible, but significantly more complicated. What I expect most people to want would be each particle being given a random (but stable for its lifetime) value/value list.
Yes it's significantly more complicated, from what I've seen. I'll try again.
A potential method is to detect array values upon Emitter initialization, and create a PropertyNode chain for each possible combination. This is a brute force method though, I haven't yet thought of a cleverer solution.
With the behaviors introduced in release 5.0.0 it is easy to make a behavior to do whatever you need to.
Using an array instead of a primitive value would randomize a property in the update loop. Calling
emitter.init
manually with random new values isn't working.Usage example: