Packageorg.flintparticles.threeD.actions
Classpublic class Friction
InheritanceFriction Inheritance ActionBase Inheritance Object

The Friction action applies friction to the particle to slow it down when it's moving. The frictional force is constant, irrespective of how fast the particle is moving. For forces proportional to the particle's velocity, use one of the drag effects - LinearDrag and QuadraticDrag.

See also

LinearDrag
QuadraticDrag


Public Properties
 PropertyDefined By
  friction : Number
The amount of friction.
Friction
 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
  
Friction(friction:Number = 0)
The constructor creates a Friction action for use by an emitter.
Friction
 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.
Friction
Property Detail
frictionproperty
friction:Number

The amount of friction. A higher number produces a stronger frictional force.


Implementation
    public function get friction():Number
    public function set friction(value:Number):void
Constructor Detail
Friction()Constructor
public function Friction(friction:Number = 0)

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

Parameters
friction:Number (default = 0) — The amount of friction. A higher number produces a stronger frictional 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.