Packageorg.flintparticles.threeD.actions
Classpublic class RotationalLinearDrag
InheritanceRotationalLinearDrag Inheritance ActionBase Inheritance Object

The RotationalLinearDrag action applies drag to the particle to slow it down when it's rotating. The drag force is proportional to the angular velocity of the particle.



Public Properties
 PropertyDefined By
  drag : Number
The amount of drag.
RotationalLinearDrag
 Inheritedpriority : int
Returns a default priority of 0 for this action.
ActionBase
Protected Properties
 PropertyDefined By
 Inherited_priority : int = 0
ActionBase
Public Methods
 MethodDefined By
  
RotationalLinearDrag(drag:Number = 0)
The constructor creates a RotationalLinearDrag action for use by an emitter.
RotationalLinearDrag
 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.
RotationalLinearDrag
Property Detail
dragproperty
drag:Number

The amount of drag. A higher number produces a stronger drag force.


Implementation
    public function get drag():Number
    public function set drag(value:Number):void
Constructor Detail
RotationalLinearDrag()Constructor
public function RotationalLinearDrag(drag:Number = 0)

The constructor creates a RotationalLinearDrag action for use by an emitter. To add a RotationalLinearDrag to all particles created by an emitter, use the emitter's addAction method.

Parameters
drag:Number (default = 0) — The amount of drag. A higher number produces a stronger drag force.

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.