| Package | away3d.animators.nodes |
| Class | public class ParticleAccelerationNode |
| Inheritance | ParticleAccelerationNode ParticleNodeBase AnimationNodeBase NamedAssetBase flash.events.EventDispatcher |
| Method | Defined By | ||
|---|---|---|---|
ParticleAccelerationNode(mode:uint, acceleration:Vector3D = null)
Creates a new ParticleAccelerationNode
| ParticleAccelerationNode | ||
![]() | assetPathEquals(name:String, ns:String):Boolean | NamedAssetBase | |
![]() | dispose():void
Cleans up resources used by this asset. | AnimationNodeBase | |
![]() |
Returns the AGAL code of the particle animation node for use in the fragment shader. | ParticleNodeBase | |
![]() |
Returns the AGAL code of the particle animation node for use in the fragment shader when UV coordinates are required. | ParticleNodeBase | |
[override]
Returns the AGAL code of the particle animation node for use in the vertex shader. | ParticleAccelerationNode | ||
| ParticleAccelerationNode | |||
![]() | getParticleNodeName(particleNodeClass:Object, particleNodeMode:uint):String [static]
| ParticleNodeBase | |
![]() | resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void | NamedAssetBase | |
| Constant | Defined By | ||
|---|---|---|---|
| ACCELERATION_VECTOR3D : String = AccelerationVector3D [static]
Reference for acceleration node properties on a single particle (when in local property mode). | ParticleAccelerationNode | ||
![]() | DEFAULT_NAMESPACE : String = default [static] | NamedAssetBase | |
| ParticleAccelerationNode | () | Constructor |
public function ParticleAccelerationNode(mode:uint, acceleration:Vector3D = null)
Creates a new ParticleAccelerationNode
mode:uint — Defines whether the mode of operation acts on local properties of a particle or global properties of the node.
| |
acceleration:Vector3D (default = null) — acceleration Defines the default acceleration vector of the node, used when in global mode.
|
| generatePropertyOfOneParticle | () | method |
override arcane function generatePropertyOfOneParticle(param:ParticleProperties):voidCalled internally by the particle animation set when assigning the set of static properties originally defined by the initParticleFunc of the set.
Parameters
param:ParticleProperties |
| getAGALVertexCode | () | method |
override public function getAGALVertexCode(pass:MaterialPassBase, animationRegisterCache:AnimationRegisterCache):StringReturns the AGAL code of the particle animation node for use in the vertex shader.
Parameters
pass:MaterialPassBase | |
animationRegisterCache:AnimationRegisterCache |
String |
| getAnimationState | () | method |
public function getAnimationState(animator:IAnimator):ParticleAccelerationState
Parameters
animator:IAnimator |
ParticleAccelerationState |
| ACCELERATION_VECTOR3D | Constant |
public static const ACCELERATION_VECTOR3D:String = AccelerationVector3D
Reference for acceleration node properties on a single particle (when in local property mode).
Expects a Vector3D object representing the direction of acceleration on the particle.