Class SphereDirectedParticleEmitter
Hierarchy
-
SphereParticleEmitter
- SphereDirectedParticleEmitter
Implements
Index
Constructors
Properties
Methods
Constructors
constructor
-
Creates a new instance SphereDirectedParticleEmitter
Parameters
-
Optional radius: number
the radius of the emission sphere (1 by default)
-
Optional direction1: Vector3
the min limit of the emission direction (up vector by default)
-
Optional direction2: Vector3
the max limit of the emission direction (up vector by default)
Returns SphereDirectedParticleEmitter
-
Properties
direction1Search playground for direction1
The min limit of the emission direction.
direction2Search playground for direction2
The max limit of the emission direction.
direction RandomizerSearch playground for directionRandomizer
How much to randomize the particle direction [0-1].
radiusSearch playground for radius
The radius of the emission sphere.
radius RangeSearch playground for radiusRange
The range of emission [0-1] 0 Surface only, 1 Entire Radius.
Methods
apply ToShaderSearch playground for applyToShader
-
Called by the GPUParticleSystem to setup the update shader
Parameters
-
effect: Effect
defines the update shader
Returns void
-
cloneSearch playground for clone
-
Clones the current emitter and returns a copy of it
Returns SphereDirectedParticleEmitter
the new emitter
get Class NameSearch playground for getClassName
-
Returns the string "SphereDirectedParticleEmitter"
Returns string
a string containing the class name
get Effect DefinesSearch playground for getEffectDefines
-
Returns a string to use to update the GPU particles update shader
Returns string
a string containng the defines string
parseSearch playground for parse
-
Parse properties from a JSON object
Parameters
-
serializationObject: any
defines the JSON object
Returns void
-
serializeSearch playground for serialize
-
Serializes the particle system to a JSON object.
Returns any
the JSON object
start Direction FunctionSearch playground for startDirectionFunction
-
Called by the particle System when the direction is computed for the created particle.
Parameters
-
worldMatrix: Matrix
is the world matrix of the particle system
-
directionToUpdate: Vector3
is the direction vector to update with the result
-
particle: Particle
is the particle we are computed the direction for
Returns void
-
start Position FunctionSearch playground for startPositionFunction
-
Called by the particle System when the position is computed for the created particle.
Parameters
-
worldMatrix: Matrix
is the world matrix of the particle system
-
positionToUpdate: Vector3
is the position vector to update with the result
-
particle: Particle
is the particle we are computed the position for
-
isLocal: boolean
defines if the position should be set in local space
Returns void
-
Particle emitter emitting particles from the inside of a sphere. It emits the particles randomly between two vectors.