Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualAlundra

Posted 23 December 2012 - 01:51 AM

Hi,
When we update particle system, we have a spawn rate who is the number of particle by seconds.1/SpawnRate is the time by spawn.
ParticleSystem time is increased by ElapsedTime each update.When SpawnTimer >= 1/SpawnRate, we spawn a particle.
Now the probleme is to sync particle with time.If we spawn a particle, the time is not exactly 1/SpawnRate so the particle already has a lifeTime>0.How sync that correctly ? Is it correct to compute deltaTime and Update the particle using this deltaTime ? What's about a big lag so need to spawn more than one particle ?

Thanks

#1Alundra

Posted 23 December 2012 - 01:50 AM

Hi,

When we update particle system, we have a spawn rate who is the number of particle by seconds.1/SpawnRate is the time by spawn.

ParticleSystem time is increased by ElapsedTime each update.When SpawnTimer >= 1/SpawnRate, we spawn a particle.

Now the probleme is to sync particle with time.If we spawn a particle, the time is not exactly 1/SpawnRate so the particle already has a lifeTime>0.How sync that correctly ? Is it correct to compute deltaTime and Update the particle using this deltaTime ? What about a big lag so need to spawn more than one particle ?

 

Thanks


PARTNERS