[osg-users] change particle sistems life time in run-time

2009-05-20 Thread Iban Arriola
Hi, Hi I´m trying to change my particle systems life time in run-time. To do that, I started making a function setUp called once and a function update called every frame. Inside the setUp function I create the particle system: I set the shape, life time, size, mass, initial speed and so on.

Re: [osg-users] change particle sistems life time in run-time

2009-05-20 Thread Maxim Gammer
hi! im my code: bool BaseParticleObject::setParticleSetLifeTime(float value) { ptemplate-setLifeTime((double)value); ps-setDefaultParticleTemplate(*ptemplate); return true; } // //osgParticle::Particle* ptemplate; //osg::ref_ptrosgParticle::ParticleSystem ps; 2009/5/20