Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


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: 930

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