| Package | org.flintparticles.common.initializers |
| Class | public class MassInit |
| Inheritance | MassInit InitializerBase |
| Property | Defined by | ||
|---|---|---|---|
| mass : Number
When reading, returns the average of minMass and maxMass.
| MassInit | ||
![]() | priority : int
Returns a default priority of 0 for this action.
| InitializerBase | |
| Method | Defined by | ||
|---|---|---|---|
|
MassInit(mass:Number = 1)
The constructor creates a MassInit initializer for use by
an emitter.
| MassInit | ||
![]() |
addedToEmitter(emitter:Emitter):void
This method does nothing.
| InitializerBase | |
|
This method does nothing.
| MassInit | ||
![]() |
removedFromEmitter(emitter:Emitter):void
This method does nothing.
| InitializerBase | |
| mass | property |
mass:Number [read-write]When reading, returns the average of minMass and maxMass. When writing this sets both minMass and maxMass to the same mass value.
Implementation public function get mass():Number
public function set mass(value:Number):void
| MassInit | () | constructor |
public function MassInit(mass:Number = 1)The constructor creates a MassInit initializer for use by an emitter. To add a MassInit to all particles created by an emitter, use the emitter's addInitializer method.
Parametersmass:Number (default = 1) — the mass for particles
initialized by the instance.
|
See also
| initialize | () | method |
public override function initialize(emitter:Emitter, particle:Particle):voidThis method does nothing. All derived classes override this method to initialize each particle created by the emitter.
Parametersemitter:Emitter |
|
particle:Particle |