[osg-users] osgParticle (particle life time)`

Trajce Nikolov NICK trajce.nikolov.nick at gmail.com
Mon Oct 2 14:24:41 PDT 2017


Hi Jannik,

I am doing this for the default particle template, not using operators on
single particles. But yes, I found that call too. For this I have to
rethink my code how to use this per particle fired. Learning osgParticle now

Thanks anyway

On Mon, Oct 2, 2017 at 10:17 PM, Jannik Heller <scrawl at baseoftrash.de>
wrote:

> Hi Nick,
>
> I think what you're looking for would be Particle::kill():
>
>
> Code:
>
>         /** Kill the particle on next update
>             NOTE: after calling this function, the isAlive() method will
> still
>             return true until the particle is updated again.
>         */
> inline void kill();
>
>
>
>
> Does this not work?
>
> Cheers,
> Jannik[/code]
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=72088#72088
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
trajce nikolov nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20171002/5604d0e7/attachment-0001.html>


More information about the osg-users mailing list