Jump to content

  • Log In with Google      Sign In   
  • Create Account


Sync time with ParticleSystem


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 Alundra   Members   -  Reputation: 844

Like
0Likes
Like

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's about a big lag so need to spawn more than one particle ?

Thanks

Edited by Alundra, 23 December 2012 - 01:51 AM.


Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS