Game Development Community

how to delete particles ?

by Orion Elenzil · in Torque Game Engine · 03/23/2009 (6:44 pm) · 2 replies

anyone have any tips on immediately deleting all the particles in the simulation ?

our game has lots of furniture items you can get,
and i have an automated process which generates thumbnail images for each of them by instantiating the item, waiting a frame, taking a snapshot, deleting the item, and moving on to the next item. (that's a simplification but that's the basic idea)

the problem is that some items emit particles when instantiated,
and the particles stick around even after the ParticleEmitterNode has been deleted, so particles from Item A end up in the snapshot for Item B.

i guess i could look at adding a flag to either ParticleEmitterNode or ParticleEmitterData along the lines of "deleteParticlesOnDelete".