Wednesday, January 27, 2010

Particle Expansion

The particle system has been extended and integrated with the scene manager. Objects can now start particle animations as part of their object, manage them and then abandon them if necessary. The object passes it's particle emitters to the scene and the scene completes the particle simulation before deleting the emitter from the scene.



4 comments:

  1. What is generating the particles? the tree or the pea? and why/when?

    ReplyDelete
  2. I guess that's not very obvious. The peas that are falling down are exploding and leaving the particle effect behind, which the scene manager takes over and completes before deleting the abandoned particle emitter.

    Prior to this change any object that wanted to spew particles had to tick and render the particles in it's step() and render() functions, and if you deleted that object the particles were then deleted.

    ReplyDelete
  3. Oh yeah, and a little new feature added too. You'll notice perhaps that the particles are picking up a percentage of the speed of the object that spawned them.

    ReplyDelete