A particle animation node used to control the position of a particle over time using simple harmonic motion.

Static variables

@:value("OscillatorVector3D")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

@:value({ oscillator : null })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

Inherited Variables

Defined by ParticleNodeBase

read onlydataLength:Int

read onlymode:Int

read onlyoneData:Vector<Float>

read onlypriority:Int

Defined by AnimationNodeBase

Defined by NamedAssetBase

read onlyassetFullPath:Array<Dynamic>

read onlyassetNamespace:String

id:String

name:String

read onlyoriginalName:String

Inherited Methods

Defined by ParticleNodeBase

getAGALFragmentCode(pass:MaterialPassBase, animationRegisterCache:AnimationRegisterCache):String

Returns the AGAL code of the particle animation node for use in the fragment shader.

getAGALUVCode(pass:MaterialPassBase, animationRegisterCache:AnimationRegisterCache):String

Returns the AGAL code of the particle animation node for use in the fragment shader when UV coordinates are required.

Defined by AnimationNodeBase

dispose():Void

@inheritDoc

Defined by NamedAssetBase

assetPathEquals(name:String, ns:String):Bool

@:value({ overrideOriginal : true, ns : null })resetAssetPath(name:String, ?ns:String, overrideOriginal:Bool = true):Void