Package | away3d.animators.nodes |
Class | public class ParticleOrbitNode |
Inheritance | ParticleOrbitNode ParticleNodeBase AnimationNodeBase NamedAssetBase flash.events.EventDispatcher |
Method | Defined By | ||
---|---|---|---|
ParticleOrbitNode(mode:uint, usesEulers:Boolean = true, usesCycle:Boolean = false, usesPhase:Boolean = false, radius:Number = 100, cycleDuration:Number = 1, cyclePhase:Number = 0, eulers:Vector3D = null)
Creates a new ParticleOrbitNode object. | ParticleOrbitNode | ||
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. | ParticleOrbitNode | ||
ParticleOrbitNode | |||
resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void | NamedAssetBase |
Constant | Defined By | ||
---|---|---|---|
DEFAULT_NAMESPACE : String = default [static] | NamedAssetBase | ||
ORBIT_VECTOR3D : String = OrbitVector3D [static]
Reference for orbit node properties on a single particle (when in local property mode). | ParticleOrbitNode |
ParticleOrbitNode | () | Constructor |
public function ParticleOrbitNode(mode:uint, usesEulers:Boolean = true, usesCycle:Boolean = false, usesPhase:Boolean = false, radius:Number = 100, cycleDuration:Number = 1, cyclePhase:Number = 0, eulers:Vector3D = null)
Creates a new ParticleOrbitNode
object.
mode:uint — Defines whether the mode of operation acts on local properties of a particle or global properties of the node.
| |
usesEulers:Boolean (default = true ) — usesEulers Defines whether the node uses the eulers property in the shader to calculate a rotation on the orbit. Defaults to true.
| |
usesCycle:Boolean (default = false ) — usesCycle Defines whether the node uses the cycleDuration property in the shader to calculate the period of the orbit independent of particle duration. Defaults to false.
| |
usesPhase:Boolean (default = false ) — usesPhase Defines whether the node uses the cyclePhase property in the shader to calculate a starting offset to the cycle rotation of the particle. Defaults to false.
| |
radius:Number (default = 100 ) — radius Defines the radius of the orbit when in global mode. Defaults to 100.
| |
cycleDuration:Number (default = 1 ) — cycleDuration Defines the duration of the orbit in seconds, used as a period independent of particle duration when in global mode. Defaults to 1.
| |
cyclePhase:Number (default = 0 ) — cyclePhase Defines the phase of the orbit in degrees, used as the starting offset of the cycle when in global mode. Defaults to 0.
| |
eulers:Vector3D (default = null ) — eulers Defines the euler rotation in degrees, applied to the orientation of the orbit when in global mode.
|
generatePropertyOfOneParticle | () | method |
override arcane function generatePropertyOfOneParticle(param:ParticleProperties):void
Called 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):String
Returns 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):ParticleOrbitState
Parameters
animator:IAnimator |
ParticleOrbitState |
ORBIT_VECTOR3D | Constant |
public static const ORBIT_VECTOR3D:String = OrbitVector3D
Reference for orbit node properties on a single particle (when in local property mode).
Expects a Vector3D
object representing the radius (x), cycle speed (y) and cycle phase (z) of the motion on the particle.