Class SubEmitter
Constructors
constructor
-
Creates a sub emitter
Parameters
- particleSystem: ParticleSystem
the particle system to be used by the sub emitter
Returns SubEmitter
- particleSystem: ParticleSystem
Properties
inherit Direction
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 Amount
How much of the attached particles speed should be added to the sub emitted particle (default: 0)
particle System
the particle system to be used by the sub emitter
type
Type of the submitter (Default: END)
Methods
clone
dispose
-
Release associated resources
Returns void
serialize
-
Serialize current object to a JSON object
Parameters
- serializeTexture: boolean = false
defines if the texture must be serialized as well
Returns any
the serialized object
- serializeTexture: boolean = false
StaticParse
-
Parse(
serializationObject: any,
sceneOrEngine: Scene | AbstractEngine,
rootUrl: string,
): SubEmitterCreates a new SubEmitter from a serialized JSON version
Parameters
- serializationObject: any
defines the JSON object to read from
- sceneOrEngine: Scene | AbstractEngine
defines the hosting scene or the hosting engine
- rootUrl: string
defines the rootUrl for data loading
Returns SubEmitter
a new SubEmitter
- serializationObject: any
Sub emitter class used to emit particles from an existing particle