class ParticleOrbitNode
package away3d.animators.nodes
extends ParticleNodeBase › AnimationNodeBase › NamedAssetBase
Available on all platforms
A particle animation node used to control the position of a particle over time around a circular orbit.
Static variables
staticinlineread onlyORBIT_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.
Constructor
new(mode:Int, usesEulers:Bool = true, usesCycle:Bool = false, usesPhase:Bool = false, radius:Float = 100, cycleDuration:Float = 1, cyclePhase:Float = 0, ?eulers:Vector3D)
Creates a new ParticleOrbitNode object.
Parameters:
mode | Defines whether the mode of operation acts on local properties of a particle or global properties of the node. |
|---|---|
[optional] | usesEulers Defines whether the node uses the |
[optional] | usesCycle Defines whether the node uses the |
[optional] | usesPhase Defines whether the node uses the |
[optional] | radius Defines the radius of the orbit when in global mode. Defaults to 100. |
[optional] | cycleDuration Defines the duration of the orbit in seconds, used as a period independent of particle duration when in global mode. Defaults to 1. |
[optional] | cyclePhase Defines the phase of the orbit in degrees, used as the starting offset of the cycle when in global mode. Defaults to 0. |
[optional] | eulers Defines the euler rotation in degrees, applied to the orientation of the orbit when in global mode. |
Methods
getAGALVertexCode(pass:MaterialPassBase, animationRegisterCache:AnimationRegisterCache):String
@inheritDoc