Packageorg.flintparticles.threeD.actions
Classpublic class TweenPosition
InheritanceTweenPosition Inheritance ActionBase Inheritance Object

The TweenPosition action adjusts the particle's position between two locations as it ages. This action should be used in conjunction with the Age action.



Public Properties
 PropertyDefined By
  end : Vector3D
The X value for the particle at the end of its life.
TweenPosition
 Inheritedpriority : int
Returns a default priority of 0 for this action.
ActionBase
  start : Vector3D
The x position for the particle at the start of its life.
TweenPosition
Protected Properties
 PropertyDefined By
 Inherited_priority : int = 0
ActionBase
Public Methods
 MethodDefined By
  
TweenPosition(start:Vector3D = null, end:Vector3D = null)
The constructor creates a TweenPosition action for use by an emitter.
TweenPosition
 Inherited
addedToEmitter(emitter:Emitter):void
This method does nothing.
ActionBase
 Inherited
This method does nothing.
ActionBase
  
update(emitter:Emitter, particle:Particle, time:Number):void
[override] This method does nothing.
TweenPosition
Property Detail
endproperty
end:Vector3D

The X value for the particle at the end of its life.


Implementation
    public function get end():Vector3D
    public function set end(value:Vector3D):void
startproperty 
start:Vector3D

The x position for the particle at the start of its life.


Implementation
    public function get start():Vector3D
    public function set start(value:Vector3D):void
Constructor Detail
TweenPosition()Constructor
public function TweenPosition(start:Vector3D = null, end:Vector3D = null)

The constructor creates a TweenPosition action for use by an emitter. To add a TweenPosition to all particles created by an emitter, use the emitter's addAction method.

Parameters
start:Vector3D (default = null) — The x value for the particle at the start of its life.
 
end:Vector3D (default = null) — The y value for the particle at the start of its life.

See also

Method Detail
update()method
override public function update(emitter:Emitter, particle:Particle, time:Number):void

This method does nothing. All derived classes override this method to update each particle every frame.

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.