Torque 3D - Script Manual: ParticleEmitter Class Reference

TorqueScript

Main   Class List   Namespace List   Online

ParticleEmitter Class Reference
[Special Effects]

This object is responsible for spawning particles. More...

Inheritance diagram for ParticleEmitter:

List of all members.

Static Public Attributes

static bool isRenderable
 Disables rendering of all instances of this type.
static bool isSelectable
 Disables selection of all instances of this type.

Detailed Description

This object is responsible for spawning particles.

Note:
This class is not normally instantiated directly - to place a simple particle emitting object in the scene, use a ParticleEmitterNode instead.

This class is the main interface for creating particles - though it is usually only accessed from within another object like ParticleEmitterNode or WheeledVehicle. If using this object class (via C++) directly, be aware that it does not track changes in source axis or velocity over the course of a single update, so emitParticles should be called at a fairly fine grain. The emitter will potentially track the last particle to be created into the next call to this function in order to create a uniformly random time distribution of the particles.

If the object to which the emitter is attached is in motion, it should try to ensure that for call (n+1) to this function, start is equal to the end from call (n). This will ensure a uniform spatial distribution.

See also:
ParticleEmitterData
ParticleEmitterNode


Copyright © GarageGames, LLC. All Rights Reserved.