Packageorg.flintparticles.twoD.actions
Classpublic class Rotate
InheritanceRotate Inheritance ActionBase Inheritance Object

The Rotate action updates the rotation of the particle based on its angular velocity. It uses a Euler integrator to calculate the new rotation. If you want an emitter's particles to rotate then you must add a Rotate action, or a similar custom action, to the emitter

This action has a priority of -10, so that it executes after other actions.



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 Rotate action for use by an emitter.
Rotate
 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] Updates the particle's rotation based on its angular velocity and the period of time indicated.
Rotate
Constructor Detail
Rotate()Constructor
public function Rotate()

The constructor creates a Rotate action for use by an emitter. To add a Rotate 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

Updates the particle's rotation based on its angular velocity and the period of time indicated.

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