| Package | org.flintparticles.twoD.actions |
| Class | public class TurnAwayFromMouse |
| Inheritance | TurnAwayFromMouse TurnTowardsMouse ActionBase |
| Property | Defined by | ||
|---|---|---|---|
| power : Number
The strength of the turn action.
| TurnAwayFromMouse | ||
![]() | priority : int
Returns a default priority of 0 for this action.
| ActionBase | |
![]() | renderer : DisplayObject
The display object whose coordinate system the mouse position is converted to.
| TurnTowardsMouse | |
| Method | Defined by | ||
|---|---|---|---|
|
TurnAwayFromMouse(power:Number = 0, renderer:DisplayObject = null)
The constructor creates a TurnAwayFromMouse action for use by an emitter.
| TurnAwayFromMouse | ||
![]() |
addedToEmitter(emitter:Emitter):void
This method does nothing.
| ActionBase | |
![]() |
removedFromEmitter(emitter:Emitter):void
This method does nothing.
| ActionBase | |
![]() |
Calculates the direction to the mouse and turns the particle towards
this direction.
| TurnTowardsMouse | |
| power | property |
power:Number [read-write]The strength of the turn action. Higher values produce a sharper turn.
Implementation public function get power():Number
public function set power(value:Number):void
| TurnAwayFromMouse | () | constructor |
public function TurnAwayFromMouse(power:Number = 0, renderer:DisplayObject = null)The constructor creates a TurnAwayFromMouse action for use by an emitter. To add a TurnAwayFromMouse to all particles created by an emitter, use the emitter's addAction method.
Parameterspower:Number (default = 0) — The strength of the turn action. Higher values produce a sharper turn.
|
|
renderer:DisplayObject (default = null) — The display object whose coordinate system the mouse position is
converted to. This is usually the renderer for the particle system created by the emitter.
|
See also