| Package | org.flintparticles.twoD.actions |
| Class | public class RotateToDirection |
| Inheritance | RotateToDirection ActionBase |
| Method | Defined by | ||
|---|---|---|---|
|
The constructor creates a RotateToDirection action for use by an emitter.
| RotateToDirection | ||
![]() |
addedToEmitter(emitter:Emitter):void
This method does nothing.
| ActionBase | |
![]() |
removedFromEmitter(emitter:Emitter):void
This method does nothing.
| ActionBase | |
|
Calculates a new rotation based on the direction of the
particle's velocity and applies it to the particle.
| RotateToDirection | ||
| 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
| update | () | method |
public override function update(emitter:Emitter, particle:Particle, time:Number):voidCalculates a new rotation based on the direction of the particle's velocity and applies it to the particle.
This method is called by the emitter and need not be called by the user.
Parametersemitter: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