Sync time with ParticleSystem

Started by
-1 comments, last by Alundra 11 years, 3 months ago
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

This topic is closed to new replies.

Advertisement