Class SubEmitter
Hierarchy
- SubEmitter
Index
Constructors
Properties
Methods
Constructors
constructor
Creates a sub emitter
Parameters
particleSystem: ParticleSystem
the particle system to be used by the sub emitter
Returns SubEmitter
Properties
inherit DirectionSearch playground for inheritDirection
If the particle should inherit the direction from the particle it's attached to. (+Y will face the direction the particle is moving) (Default: false) Note: This only is supported when using an emitter of type Mesh
inherited Velocity AmountSearch playground for inheritedVelocityAmount
How much of the attached particles speed should be added to the sub emitted particle (default: 0)
particle SystemSearch playground for particleSystem
the particle system to be used by the sub emitter
typeSearch playground for type
Type of the submitter (Default: END)
Methods
cloneSearch playground for clone
Clones the sub emitter
Returns SubEmitter
the cloned sub emitter
disposeSearch playground for dispose
Release associated resources
Returns void
serializeSearch playground for serialize
Serialize current object to a JSON object
Parameters
Optional serializeTexture: boolean
defines if the texture must be serialized as well
Returns any
the serialized object
Static ParseSearch playground for Parse
Creates a new SubEmitter from a serialized JSON version
Parameters
serializationObject: any
defines the JSON object to read from
sceneOrEngine: Scene | ThinEngine
defines the hosting scene or the hosting engine
rootUrl: string
defines the rootUrl for data loading
Returns SubEmitter
a new SubEmitter
Sub emitter class used to emit particles from an existing particle