How to stop particle system creating particles ?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
lizhigang34
Posts: 49
Joined: Sun Dec 21, 2008 4:11 pm

How to stop particle system creating particles ?

Post by lizhigang34 »

I created smoke effect in my scene.Now I need cancel the effect when I press a key.I don't know how to stop particle emitter creating particles.
lizhigang34
Posts: 49
Joined: Sun Dec 21, 2008 4:11 pm

Post by lizhigang34 »

I want to control the particle system creating particle.
when I press 'A' it creat particles,press 'B' it don't create particles any more.
B@z
Posts: 876
Joined: Thu Jan 31, 2008 5:05 pm
Location: Hungary

Post by B@z »

you can set the emitter 0.

ps->setEmitter(0);

and it will stop the particles, but doesn't destroy the system. if you wanna destroy it, you have to do it manually, or make an animator for it ( i made one before xD isn't so hard)
Image
Image
Post Reply