Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Changing NumParticles at runtime?
#1
Hi there!

I'm trying to get a better control of the number of active particles from an ObiEmitter at any time, but it looks like changing the NumParticles in the ObiEmitter resets all the particle physic states (so I guess it's only meant to be initialized once and then left untouched...). Using the speed setting is not a safe enough option for me, as I need to generate an accurate number of particles, that increases over time.
Is there a way to work around this without needing to change how the ObiEmitter itself works? (I was thinking of pre-allocating a max number of particles using NumParticles, and then controlling the emission using a separate variable in ObiEmitter. But I don't like having to work around a lib, as it makes upgrades more complex to deal with Guiño )
Maybe that would be a nice feature?
Note: I'm currently on Obi Fluid 3.3 (or maybe 3.2), so maybe that has been fixed in the meantime in Obi Fluid 3.4?

Cheers!
Reply


Messages In This Thread
Changing NumParticles at runtime? - by tooomg - 28-04-2018, 02:05 AM