by alvinsay on Thu Mar 25, 2010 9:59 am
Hi,
I don't think using ParticleSystem::getState() is a efficient way to recycle or delete finished particle system.
If you have many particle system, you have to poll their states one by one in each frame!
Is there any plan to add some kind of "create and forget" mechanism?
In most scenarios, particle system are created in events such as explosion, gun firing or hitting. These events cause particle systems to be played in a short duration, then particle system are recycled or deleted. Therefore, users often need to write some classes to manage those playing once particle system, to detect whether they are done, and then do some actions for those finished. It would be appreciated if particle universe had already had this kind of mechanism itself.