| Package | org.flintparticles.threeD.actions |
| Class | public class TargetVelocity |
| Inheritance | TargetVelocity ActionBase Object |
| Property | Defined By | ||
|---|---|---|---|
![]() | priority : int
Returns a default priority of 0 for this action. | ActionBase | |
| rate : Number
Adjusts how quickly the particle reaches the target angular velocity. | TargetVelocity | ||
| targetVelocity : Vector3D
The x coordinate of the target velocity, in pixels per second.s
| TargetVelocity | ||
| x : Number
The x coordinate of the target velocity. | TargetVelocity | ||
| y : Number
The y coordinate of the target velocity. | TargetVelocity | ||
| z : Number
The z coordinate of the target velocity. | TargetVelocity | ||
| Method | Defined By | ||
|---|---|---|---|
TargetVelocity(targetVelocity:Vector3D = null, rate:Number = 0.1)
The constructor creates a TargetVelocity action for use by
an emitter. | TargetVelocity | ||
![]() | addedToEmitter(emitter:Emitter):void
This method does nothing. | ActionBase | |
![]() | removedFromEmitter(emitter:Emitter):void
This method does nothing. | ActionBase | |
[override]
This method does nothing. | TargetVelocity | ||
| rate | property |
rate:NumberAdjusts how quickly the particle reaches the target angular velocity. Larger numbers cause it to approach the target angular velocity more quickly.
public function get rate():Number public function set rate(value:Number):void| targetVelocity | property |
targetVelocity:Vector3DThe x coordinate of the target velocity, in pixels per second.s
public function get targetVelocity():Vector3D public function set targetVelocity(value:Vector3D):void| x | property |
x:NumberThe x coordinate of the target velocity.
public function get x():Number public function set x(value:Number):void| y | property |
y:NumberThe y coordinate of the target velocity.
public function get y():Number public function set y(value:Number):void| z | property |
z:NumberThe z coordinate of the target velocity.
public function get z():Number public function set z(value:Number):void| TargetVelocity | () | Constructor |
public function TargetVelocity(targetVelocity:Vector3D = null, rate:Number = 0.1)The constructor creates a TargetVelocity action for use by an emitter. To add a TargetVelocity to all particles created by an emitter, use the emitter's addAction method.
ParameterstargetVelocity:Vector3D (default = null) — The x coordinate of the target velocity, in pixels per second.
| |
rate:Number (default = 0.1) — The y coordinate of the target velocity, in pixels per second.
|
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.
|