View source
class ParticleOscillatorNode
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 using simple harmonic motion.
Static variables
staticinlineread onlyOSCILLATOR_VECTOR3D:String = "OscillatorVector3D"
Reference for ocsillator node properties on a single particle (when in local property mode).
Expects a Vector3D object representing the axis (x,y,z) and cycle speed (w) of the motion on the particle.
Constructor
new(mode:Int, ?oscillator:Vector3D)
Creates a new ParticleOscillatorNode
Parameters:
mode | Defines whether the mode of operation acts on local properties of a particle or global properties of the node. |
|---|---|
[optional] | oscillator Defines the default oscillator axis (x, y, z) and cycleDuration (w) of the node, used when in global mode. |
Methods
getAGALVertexCode(pass:MaterialPassBase, animationRegisterCache:AnimationRegisterCache):String
@inheritDoc