class ParticleScaleNode
package away3d.animators.nodes
extends ParticleNodeBase › AnimationNodeBase › NamedAssetBase
Available on all platforms
A particle animation node used to control the scale variation of a particle over time.
Static variables
staticinlineread onlySCALE_VECTOR3D:String = "ScaleVector3D"
Reference for scale node properties on a single particle (when in local property mode).
Expects a Vector3D representing the min scale (x), max scale(y), optional cycle speed (z) and phase offset (w) applied to the particle.
Constructor
new(mode:Int, usesCycle:Bool, usesPhase:Bool, minScale:Float = 1, maxScale:Float = 1, cycleDuration:Float = 1, cyclePhase:Float = 0)
Creates a new ParticleScaleNode
Parameters:
mode | Defines whether the mode of operation acts on local properties of a particle or global properties of the node. |
|---|---|
[optional] | usesCycle Defines whether the node uses the |
[optional] | usesPhase Defines whether the node uses the |
[optional] | minScale Defines the default min scale transform of the node, when in global mode. Defaults to 1. |
[optional] | maxScale Defines the default max color transform of the node, when in global mode. Defaults to 1. |
[optional] | cycleDuration Defines the default duration of the animation in seconds, used as a period independent of particle duration when in global mode. Defaults to 1. |
[optional] | cyclePhase Defines the default phase of the cycle in degrees, used as the starting offset of the cycle when in global mode. Defaults to 0. |
Methods
getAGALVertexCode(pass:MaterialPassBase, animationRegisterCache:AnimationRegisterCache):String
@inheritDoc