| Package | org.flintparticles.twoD.actions |
| Class | public class RotationalFriction |
| Inheritance | RotationalFriction ActionBase Object |
See also
| Property | Defined By | ||
|---|---|---|---|
| friction : Number
The amount of friction. | RotationalFriction | ||
![]() | priority : int
Returns a default priority of 0 for this action. | ActionBase | |
| Method | Defined By | ||
|---|---|---|---|
RotationalFriction(friction:Number = 0)
The constructor creates a RotationalFriction action for use by an emitter. | RotationalFriction | ||
![]() | addedToEmitter(emitter:Emitter):void
This method does nothing. | ActionBase | |
![]() | removedFromEmitter(emitter:Emitter):void
This method does nothing. | ActionBase | |
[override]
Calculates the effect of the friction on the particle over the
period of time indicated and adjusts the particle's angular velocity
accordingly. | RotationalFriction | ||
| friction | property |
friction:NumberThe amount of friction. A higher number produces a stronger frictional force.
public function get friction():Number public function set friction(value:Number):void| RotationalFriction | () | Constructor |
public function RotationalFriction(friction:Number = 0)The constructor creates a RotationalFriction action for use by an emitter. To add a RotationalFriction to all particles created by an emitter, use the emitter's addAction method.
Parametersfriction:Number (default = 0) — The amount of friction. A higher number produces a stronger frictional force.
|
See also
| update | () | method |
override public function update(emitter:Emitter, particle:Particle, time:Number):voidCalculates the effect of the friction on the particle over the period of time indicated and adjusts the particle's angular velocity accordingly.
This method is called by the emitter and need not be called by the user.
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.
|
See also