Packageorg.flintparticles.threeD.actions
Classpublic class TurnTowardsPoint
InheritanceTurnTowardsPoint Inheritance ActionBase Inheritance Object

The TurnTowardsPoint action causes the particle to constantly adjust its direction so that it travels towards a particular point.



Public Properties
 PropertyDefined By
  point : Vector3D
The point that the particle turns towards.
TurnTowardsPoint
  power : Number
The strength of theturn action.
TurnTowardsPoint
 Inheritedpriority : int
Returns a default priority of 0 for this action.
ActionBase
  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
  z : Number
The z coordinate of the point that the particle turns towards.
TurnTowardsPoint
Protected Properties
 PropertyDefined By
 Inherited_priority : int = 0
ActionBase
Public Methods
 MethodDefined By
  
TurnTowardsPoint(point:Vector3D = null, power:Number = 0)
The constructor creates a TurnTowardsPoint action for use by an emitter.
TurnTowardsPoint
 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.
TurnTowardsPoint
Property Detail
pointproperty
point:Vector3D

The point that the particle turns towards.


Implementation
    public function get point():Vector3D
    public function set point(value:Vector3D):void
powerproperty 
power:Number

The strength of theturn action. Higher values produce a sharper turn.


Implementation
    public function get power():Number
    public function set power(value:Number):void
xproperty 
x:Number

The x coordinate of the point that the particle turns towards.


Implementation
    public function get x():Number
    public function set x(value:Number):void
yproperty 
y:Number

The y coordinate of the point that the particle turns towards.


Implementation
    public function get y():Number
    public function set y(value:Number):void
zproperty 
z:Number

The z coordinate of the point that the particle turns towards.


Implementation
    public function get z():Number
    public function set z(value:Number):void
Constructor Detail
TurnTowardsPoint()Constructor
public function TurnTowardsPoint(point:Vector3D = null, power:Number = 0)

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.

Parameters
point:Vector3D (default = null) — The strength of the turn action. Higher values produce a sharper turn.
 
power:Number (default = 0) — The point towards which the particle turns.

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.