| Package | org.flintparticles.threeD.actions |
| Class | public class TurnTowardsPoint |
| Inheritance | TurnTowardsPoint ActionBase Object |
| Property | Defined By | ||
|---|---|---|---|
| point : Vector3D
The point that the particle turns towards. | TurnTowardsPoint | ||
| power : Number
The strength of theturn action. | TurnTowardsPoint | ||
![]() | priority : 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 | ||
| Method | Defined By | ||
|---|---|---|---|
TurnTowardsPoint(point:Vector3D = null, power:Number = 0)
The constructor creates a TurnTowardsPoint action for use by
an emitter. | TurnTowardsPoint | ||
![]() | addedToEmitter(emitter:Emitter):void
This method does nothing. | ActionBase | |
![]() | removedFromEmitter(emitter:Emitter):void
This method does nothing. | ActionBase | |
[override]
This method does nothing. | TurnTowardsPoint | ||
| point | property |
point:Vector3DThe point that the particle turns towards.
public function get point():Vector3D public function set point(value:Vector3D):void| power | property |
power:NumberThe strength of theturn action. Higher values produce a sharper turn.
public function get power():Number public function set power(value:Number):void| x | property |
x:NumberThe x coordinate of the point that the particle turns towards.
public function get x():Number public function set x(value:Number):void| y | property |
y:NumberThe y coordinate of the point that the particle turns towards.
public function get y():Number public function set y(value:Number):void| z | property |
z:NumberThe z coordinate of the point that the particle turns towards.
public function get z():Number public function set z(value:Number):void| 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.
Parameterspoint: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
| update | () | method |
override public function update(emitter:Emitter, particle:Particle, time:Number):voidThis 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.
|