View source
class ParticleVelocityNode
package away3d.animators.nodes
extends ParticleNodeBase › AnimationNodeBase › NamedAssetBase
Available on all platforms
A particle animation node used to set the starting velocity of a particle.
Static variables
staticinlineread onlyVELOCITY_VECTOR3D:String = "VelocityVector3D"
Reference for velocity node properties on a single particle (when in local property mode).
Expects a Vector3D object representing the direction of movement on the particle.
Constructor
new(mode:Int, ?velocity:Vector3D)
Creates a new ParticleVelocityNode
Parameters:
mode | Defines whether the mode of operation acts on local properties of a particle or global properties of the node. |
|---|---|
[optional] | velocity Defines the default velocity vector of the node, used when in global mode. |
Methods
getAGALVertexCode(pass:MaterialPassBase, animationRegisterCache:AnimationRegisterCache):String
@inheritDoc