Hi,
I don't understand why you want to destroy the particle...
A particle System works great without killing particle manually... what do
you expect from it ?
Vincent.
2008/3/20, Serge Lages <[EMAIL PROTECTED]>:
>
> Hi,
>
> The best way I found is :
>
> for (int i = 0; i < _emitter->getParticleSystem()->numParticles(); i++)
> {
> _emitter->getParticleSystem()->destroyParticle(i);
> }
>
> Yeah, it's a bit tricky, but it works... :)
>
> On Thu, Mar 20, 2008 at 9:12 AM, Wiedemann, Rudolf, OPS3 <
> [EMAIL PROTECTED]> wrote:
>
> > Hi,
> >
> > how can I reset a particle system, so when rendering the next frame no
> > old particles exist any more, but only new particles are emitted?
> >
> > Thanks in advance!
> > Rudi
> >
> > _______________________________________________
> > osg-users mailing list
> > [email protected]
> >
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >
> >
>
>
> --
> Serge Lages
> http://www.tharsis-software.com
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org