| Package | org.flintparticles.actions |
| Class | public class TurnTowardsPoint |
| Inheritance | TurnTowardsPoint Action |
| Property | Defined by | ||
|---|---|---|---|
| power : Number
The strength of theturn action.
| TurnTowardsPoint | ||
| x : Number
The x coordinate of the point that the particle turns towards.
| TurnTowardsPoint | ||
| y : Number
The y coordinate of the point that the particle turns towards.
| TurnTowardsPoint | ||
| Method | Defined by | ||
|---|---|---|---|
|
TurnTowardsPoint(x:Number, y:Number, power:Number)
The constructor creates a TurnTowardsPoint action for use by
an emitter.
| TurnTowardsPoint | ||
![]() |
addedToEmitter(emitter:Emitter):void
The addedToEmitter method is called by the emitter when the Action is added to it
It is called within the emitter's addAction method and need not
be called by the user.
| Action | |
![]() |
getDefaultPriority():Number
The getDefaultPriority method is used to order the execution of actions.
| Action | |
![]() |
removedFromEmitter(emitter:Emitter):void
The removedFromEmitter method is called by the emitter when the Action is removed from it
It is called within the emitter's removeAction method and need not
be called by the user.
| Action | |
|
The update method is used by the emitter to apply the action
to every particle.
| TurnTowardsPoint | ||
| power | property |
power:Number [read-write]The strength of theturn action. Higher values produce a sharper turn.
Implementation public function get power():Number
public function set power(value:Number):void
| x | property |
x:Number [read-write]The x coordinate of the point that the particle turns towards.
Implementation public function get x():Number
public function set x(value:Number):void
| y | property |
y:Number [read-write]The y coordinate of the point that the particle turns towards.
Implementation public function get y():Number
public function set y(value:Number):void
| TurnTowardsPoint | () | constructor |
public function TurnTowardsPoint(x:Number, y:Number, power:Number)The constructor creates a TurnTowardsPoint action for use by an emitter. To add a TurnTowardsPoint to all particles created by an emitter, use the emitter's addAction method.
Parametersx:Number — The strength of the turn action. Higher values produce a sharper turn.
|
|
y:Number — The x coordinate of the point towards which the particle turns.
|
|
power:Number — The y coordinate of the point towards which the particle turns.
|
See also
| update | () | method |
public override function update(emitter:Emitter, particle:Particle, time:Number):voidThe update method is used by the emitter to apply the action to every particle. It is called within the emitter's update loop 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.
|