Creates a new ParticleOrbitNode
object.
Defines whether the mode of operation acts on local properties of a particle or global properties of the node.
Defines whether the node uses the eulers
property in the shader to calculate a rotation on the orbit. Defaults to true.
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.
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.
Defines the radius of the orbit when in global mode. Defaults to 100.
Defines the duration of the orbit in seconds, used as a period independent of particle duration when in global mode. Defaults to 1.
Defines the phase of the orbit in degrees, used as the starting offset of the cycle when in global mode. Defaults to 0.
Defines the euler rotation in degrees, applied to the orientation of the orbit when in global mode.
adapter is used to provide MovieClip to scripts taken from different platforms setter typically managed by factory. getter defaults to AwayJS class
A unique id for the asset, used to identify assets in an associative array
The original name used for this asset in the resource (e.g. file) in which
it was found. This may not be the same as name
, which may
have changed due to of a name conflict.
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.
Returns the length of the data used by the node when in LOCAL_STATIC
mode. Used to generate the local static data of the particle animation set.
Returns the property mode of the particle animation node. Typically set in the node constructor
Returns the generated data vector of the node after one particle pass during the generation of all local static data of the particle animation set.
Returns the priority of the particle animation node, used to order the agal generated in a particle animation set. Set automatically on instantiation.
Called internally by the particle animation set when determining the requirements of the particle animation node AGAL.
Add an event listener
Dispatch an event
Returns the AGAL code of the particle animation node for use in the fragment shader.
Returns the AGAL code of the particle animation node for use in the fragment shader when UV coordinates are required.
check if an object has an event listener assigned to it
Remove an event listener
Generated using TypeDoc
A particle animation node used to control the position of a particle over time around a circular orbit.