Sunday, August 9, 2009

Uniburst Is Back in Stardust!



View example

Stardust project homepage

As a left-out feature from the upgrade of Emitter 1.0 to 2.0, Uniburst is back in Stardust!
Now there's a Burster class whose sole responsibility is to allow user to create custom particles with full control over the particle properties, which means you can create particles that shows randomness (which is pretty much what Stardust is doing) or particles whose properties conform to a regular, uniform pattern. The latter is what Burster is mainly meant for. So far there's only one subclass, the PointUniburster class. It works just like the uniburst() method of the PointSource in Emitter 1.0: it bursts out particles spreading out at uniformly distributed angles. I'll make more Burster subclasses in the future.

The source files for the example can be found here.

No comments: