| Package | org.flintparticles.twoD.actions |
| Class | public class WrapAroundBox |
| Inheritance | WrapAroundBox ActionBase Object |
| Property | Defined By | ||
|---|---|---|---|
| bottom : Number
The left coordinate of the box. | WrapAroundBox | ||
| left : Number
The left coordinate of the box. | WrapAroundBox | ||
![]() | priority : int
Returns a default priority of 0 for this action. | ActionBase | |
| right : Number
The left coordinate of the box. | WrapAroundBox | ||
| top : Number
The top coordinate of the box. | WrapAroundBox | ||
| Method | Defined By | ||
|---|---|---|---|
WrapAroundBox(left:Number = 0, top:Number = 0, right:Number = 0, bottom:Number = 0)
The constructor creates a WrapAroundBox action for use by
an emitter. | WrapAroundBox | ||
![]() | addedToEmitter(emitter:Emitter):void
This method does nothing. | ActionBase | |
![]() | removedFromEmitter(emitter:Emitter):void
This method does nothing. | ActionBase | |
[override]
Tests whether the particle has left the box and, if so, moves it
to enter on the other side. | WrapAroundBox | ||
| bottom | property |
bottom:NumberThe left coordinate of the box.
public function get bottom():Number public function set bottom(value:Number):void| left | property |
left:NumberThe left coordinate of the box.
public function get left():Number public function set left(value:Number):void| right | property |
right:NumberThe left coordinate of the box.
public function get right():Number public function set right(value:Number):void| top | property |
top:NumberThe top coordinate of the box.
public function get top():Number public function set top(value:Number):void| WrapAroundBox | () | Constructor |
public function WrapAroundBox(left:Number = 0, top:Number = 0, right:Number = 0, bottom:Number = 0)The constructor creates a WrapAroundBox action for use by an emitter. To add a WrapAroundBox to all particles created by an emitter, use the emitter's addAction method.
Parametersleft:Number (default = 0) — The left coordinate of the box.
| |
top:Number (default = 0) — The top coordinate of the box.
| |
right:Number (default = 0) — The right coordinate of the box.
| |
bottom:Number (default = 0) — The bottom coordinate of the box.
|
See also
| update | () | method |
override public function update(emitter:Emitter, particle:Particle, time:Number):voidTests whether the particle has left the box and, if so, moves it to enter on the other side.
This method is called by the emitter and need not be called by the user
Parameters
emitter:Emitter — The Emitter that created the particle.
| |
particle:Particle — The particle to be updated.
| |
time:Number — The duration of the frame - used for time based updates.
|
See also