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.
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
2 matches
Mail list logo