| Package | org.flintparticles.twoD.actions |
| Class | public class TargetRotateVelocity |
| Inheritance | TargetRotateVelocity ActionBase |
| 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.
| TargetRotateVelocity | ||
| targetVelocity : Number
The target angular velocity, in radians per second.
| TargetRotateVelocity | ||
| Method | Defined by | ||
|---|---|---|---|
|
TargetRotateVelocity(targetVelocity:Number = 0, rate:Number = 0.1)
The constructor creates a TargetRotateVelocity action for use by an emitter.
| TargetRotateVelocity | ||
![]() |
addedToEmitter(emitter:Emitter):void
This method does nothing.
| ActionBase | |
![]() |
removedFromEmitter(emitter:Emitter):void
This method does nothing.
| ActionBase | |
|
Calculates the difference between the particle's angular velocity and
the target and adjusts the angular velocity closer to the target by an
amount proportional to the difference, the time and the rate of convergence.
| TargetRotateVelocity | ||
| rate | property |
rate:Number [read-write]Adjusts how quickly the particle reaches the target angular velocity. Larger numbers cause it to approach the target angular velocity more quickly.
Implementation public function get rate():Number
public function set rate(value:Number):void
| targetVelocity | property |
targetVelocity:Number [read-write]The target angular velocity, in radians per second.
Implementation public function get targetVelocity():Number
public function set targetVelocity(value:Number):void
| TargetRotateVelocity | () | constructor |
public function TargetRotateVelocity(targetVelocity:Number = 0, rate:Number = 0.1)The constructor creates a TargetRotateVelocity action for use by an emitter. To add a TargetRotateVelocity to all particles created by an emitter, use the emitter's addAction method.
ParameterstargetVelocity:Number (default = 0) — The target angular velocity, in radians per second.
|
|
rate:Number (default = 0.1) — Adjusts how quickly the particle reaches the target angular
velocity. Larger numbers cause it to approach the target angular velocity
more quickly.
|
See also
| update | () | method |
public override function update(emitter:Emitter, particle:Particle, time:Number):voidCalculates the difference between the particle's angular velocity and the target and adjusts the angular velocity closer to the target by an amount proportional to the difference, the time and the rate of convergence.
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