| Package | org.flintparticles.twoD.initializers |
| Class | public class PositionAbsolute |
| Inheritance | PositionAbsolute InitializerBase Object |
The class uses zones to place the particle. A zone defines a region in the coordinate space of the particle system, independent of the emitter's position, and the particle is placed at a random point within that region. For precise placement, the Point zone defines a single point at which all particles will be placed. Various zones (and the Zones interface for use when implementing custom zones) are defined in the org.flintparticles.twoD.zones package.
Default MXML Propertyzone
| Property | Defined By | ||
|---|---|---|---|
![]() | priority : int
Returns a default priority of 0 for this action. | InitializerBase | |
| zone : Zone2D
The zone. | PositionAbsolute | ||
| Method | Defined By | ||
|---|---|---|---|
PositionAbsolute(zone:Zone2D = null)
The constructor creates a PositionAbsolute initializer for use by
an emitter. | PositionAbsolute | ||
![]() | addedToEmitter(emitter:Emitter):void
This method does nothing. | InitializerBase | |
[override]
This method does nothing. | PositionAbsolute | ||
![]() | removedFromEmitter(emitter:Emitter):void
This method does nothing. | InitializerBase | |
| zone | property |
zone:Zone2DThe zone.
public function get zone():Zone2D public function set zone(value:Zone2D):void| PositionAbsolute | () | Constructor |
public function PositionAbsolute(zone:Zone2D = null)The constructor creates a PositionAbsolute initializer for use by an emitter. To add a PositionAbsolute to all particles created by an emitter, use the emitter's addInitializer method.
Parameterszone:Zone2D (default = null) — The zone to place all particles in.
|
See also
| initialize | () | method |
override public function initialize(emitter:Emitter, particle:Particle):voidThis method does nothing. All derived classes override this method to initialize each particle created by the emitter.
Parameters
emitter:Emitter | |
particle:Particle |