Modiifer Usage

To use a modifier, you first have to create it and then add it to the emitter. The emitter is responsible of sending its particles to the modifiers. You simply create a LinearGravityModifer like this:

LinearGravityModifier linearGravityModifier = new LinearGravityModifier();
linearGravityModifier.Gravity = new Vector2(0, 128);
Emitter.Modifiers.Add(linearGravityModifier);


That is it. The rest is done automatically inside the engine.

Last edited Aug 24, 2009 at 4:31 PM by JimJams, version 2