Packageorg.flintparticles.threeD.actions
Classpublic class RotateToDirection
InheritanceRotateToDirection Inheritance ActionBase Inheritance Object

The RotateToDirection action updates the rotation of the particle so that it always points in the direction it is traveling.



Public Properties
 PropertyDefined By
 Inheritedpriority : int
Returns a default priority of 0 for this action.
ActionBase
Protected Properties
 PropertyDefined By
 Inherited_priority : int = 0
ActionBase
Public Methods
 MethodDefined By
  
The constructor creates a RotateToDirection action for use by an emitter.
RotateToDirection
 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.
RotateToDirection
Constructor Detail
RotateToDirection()Constructor
public function RotateToDirection()

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

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.