Would you like to react to this message? Create an account in a few clicks or log in to continue.

Stopping emitter after 1 'cycle'

2 posters

Go down

stop emitter - Stopping emitter after 1 'cycle' Empty Stopping emitter after 1 'cycle'

Post  c3games 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


Posts : 5
Join date : 2009-05-27

Back to top Go down

stop emitter - Stopping emitter after 1 'cycle' Empty Re: Stopping emitter after 1 'cycle'

Post  yarri Fri May 29, 2009 9:56 am

"One shot" emitters can be created by changing the parabolic equation, adding a lifetime parameter:

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,


Posts : 81
Join date : 2009-04-10

Back to top Go down

Back to top

- Similar topics

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