Stopping emitter after 1 'cycle'

View previous topic View next topic Go down

Stopping emitter after 1 'cycle'

Post  c3games on Fri May 29, 2009 7:44 am

Any way of stopping an emitter after it's used up all of the particles ?

The context would be for something like an explosion.

I've had a look around the code but couldn't see anything obvious.. but hopefully I've overlooked something (most likely! Smile

c3games

Posts : 5
Join date : 2009-05-27

View user profile

Back to top Go down

Re: Stopping emitter after 1 'cycle'

Post  yarri on Fri May 29, 2009 9:56 am

"One shot" emitters can be created by changing the parabolic equation, adding a lifetime parameter:
http://sio2interactive.forumotion.net/sio2-engine-f3/particle-systems-explosion-t568.htm

Haven't found a good way to cull or re-use the allocated particles, through, but the memory footprint isn't too bad... I should probably create a pool of emitter systems and cycle through them.

Hope that helps,
--yarri

yarri

Posts : 81
Join date : 2009-04-10

View user profile

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum