Class MeshParticleEmitter
Hierarchy
- MeshParticleEmitter
Implements
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
-
Creates a new instance MeshParticleEmitter
Parameters
-
Optional mesh: Nullable<AbstractMesh>
defines the mesh to use as source
Returns MeshParticleEmitter
-
Properties
direction1Search playground for direction1
Random direction of each particle after it has been emitted, between direction1 and direction2 vectors.
direction2Search playground for direction2
Random direction of each particle after it has been emitted, between direction1 and direction2 vectors.
use Mesh Normals For DirectionSearch playground for useMeshNormalsForDirection
Gets or sets a boolean indicating that particle directions must be built from mesh face normals
Accessors
mesh
-
Defines the mesh to use as source
Returns Nullable<AbstractMesh>
-
Defines the mesh to use as source
Parameters
-
value: Nullable<AbstractMesh>
Returns any
-
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 MeshParticleEmitter
the new emitter
get Class NameSearch playground for getClassName
-
Returns the string "BoxParticleEmitter"
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
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
-
isLocal: boolean
defines if the direction should be set in local space
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 box. It emits the particles randomly between 2 given directions.