|
@@ -11861,6 +11861,10 @@ declare module "babylonjs/Particles/particleSystem" {
|
|
|
* The current active Sub-systems, this property is used by the root particle system only.
|
|
|
*/
|
|
|
activeSubSystems: Array<ParticleSystem>;
|
|
|
+ /**
|
|
|
+ * Specifies if the particles are updated in emitter local space or world space
|
|
|
+ */
|
|
|
+ isLocal: boolean;
|
|
|
private _rootParticleSystem;
|
|
|
/**
|
|
|
* Gets the current list of active particles
|
|
@@ -12285,6 +12289,8 @@ declare module "babylonjs/Particles/particle" {
|
|
|
_randomNoiseCoordinates1: Vector3;
|
|
|
/** @hidden */
|
|
|
_randomNoiseCoordinates2: Vector3;
|
|
|
+ /** @hidden */
|
|
|
+ _localPosition?: Vector3;
|
|
|
/**
|
|
|
* Creates a new instance Particle
|
|
|
* @param particleSystem the particle system the particle belongs to
|
|
@@ -12327,15 +12333,17 @@ declare module "babylonjs/Particles/EmitterTypes/IParticleEmitterType" {
|
|
|
* @param worldMatrix is the world matrix of the particle system
|
|
|
* @param directionToUpdate is the direction vector to update with the result
|
|
|
* @param particle is the particle we are computed the direction for
|
|
|
+ * @param isLocal defines if the direction should be set in local space
|
|
|
*/
|
|
|
- startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle): void;
|
|
|
+ startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
|
|
|
/**
|
|
|
* Called by the particle System when the position is computed for the created particle.
|
|
|
* @param worldMatrix is the world matrix of the particle system
|
|
|
* @param positionToUpdate is the position vector to update with the result
|
|
|
* @param particle is the particle we are computed the position for
|
|
|
+ * @param isLocal defines if the position should be set in local space
|
|
|
*/
|
|
|
- startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle): void;
|
|
|
+ startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
|
|
|
/**
|
|
|
* Clones the current emitter and returns a copy of it
|
|
|
* @returns the new emitter
|
|
@@ -12404,15 +12412,17 @@ declare module "babylonjs/Particles/EmitterTypes/boxParticleEmitter" {
|
|
|
* @param worldMatrix is the world matrix of the particle system
|
|
|
* @param directionToUpdate is the direction vector to update with the result
|
|
|
* @param particle is the particle we are computed the direction for
|
|
|
+ * @param isLocal defines if the direction should be set in local space
|
|
|
*/
|
|
|
- startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle): void;
|
|
|
+ startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
|
|
|
/**
|
|
|
* Called by the particle System when the position is computed for the created particle.
|
|
|
* @param worldMatrix is the world matrix of the particle system
|
|
|
* @param positionToUpdate is the position vector to update with the result
|
|
|
* @param particle is the particle we are computed the position for
|
|
|
+ * @param isLocal defines if the position should be set in local space
|
|
|
*/
|
|
|
- startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle): void;
|
|
|
+ startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
|
|
|
/**
|
|
|
* Clones the current emitter and returns a copy of it
|
|
|
* @returns the new emitter
|
|
@@ -12498,15 +12508,17 @@ declare module "babylonjs/Particles/EmitterTypes/coneParticleEmitter" {
|
|
|
* @param worldMatrix is the world matrix of the particle system
|
|
|
* @param directionToUpdate is the direction vector to update with the result
|
|
|
* @param particle is the particle we are computed the direction for
|
|
|
+ * @param isLocal defines if the direction should be set in local space
|
|
|
*/
|
|
|
- startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle): void;
|
|
|
+ startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
|
|
|
/**
|
|
|
* Called by the particle System when the position is computed for the created particle.
|
|
|
* @param worldMatrix is the world matrix of the particle system
|
|
|
* @param positionToUpdate is the position vector to update with the result
|
|
|
* @param particle is the particle we are computed the position for
|
|
|
+ * @param isLocal defines if the position should be set in local space
|
|
|
*/
|
|
|
- startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle): void;
|
|
|
+ startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
|
|
|
/**
|
|
|
* Clones the current emitter and returns a copy of it
|
|
|
* @returns the new emitter
|
|
@@ -12594,15 +12606,17 @@ declare module "babylonjs/Particles/EmitterTypes/cylinderParticleEmitter" {
|
|
|
* @param worldMatrix is the world matrix of the particle system
|
|
|
* @param directionToUpdate is the direction vector to update with the result
|
|
|
* @param particle is the particle we are computed the direction for
|
|
|
+ * @param isLocal defines if the direction should be set in local space
|
|
|
*/
|
|
|
- startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle): void;
|
|
|
+ startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
|
|
|
/**
|
|
|
* Called by the particle System when the position is computed for the created particle.
|
|
|
* @param worldMatrix is the world matrix of the particle system
|
|
|
* @param positionToUpdate is the position vector to update with the result
|
|
|
* @param particle is the particle we are computed the position for
|
|
|
+ * @param isLocal defines if the position should be set in local space
|
|
|
*/
|
|
|
- startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle): void;
|
|
|
+ startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
|
|
|
/**
|
|
|
* Clones the current emitter and returns a copy of it
|
|
|
* @returns the new emitter
|
|
@@ -12749,15 +12763,17 @@ declare module "babylonjs/Particles/EmitterTypes/hemisphericParticleEmitter" {
|
|
|
* @param worldMatrix is the world matrix of the particle system
|
|
|
* @param directionToUpdate is the direction vector to update with the result
|
|
|
* @param particle is the particle we are computed the direction for
|
|
|
+ * @param isLocal defines if the direction should be set in local space
|
|
|
*/
|
|
|
- startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle): void;
|
|
|
+ startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
|
|
|
/**
|
|
|
* Called by the particle System when the position is computed for the created particle.
|
|
|
* @param worldMatrix is the world matrix of the particle system
|
|
|
* @param positionToUpdate is the position vector to update with the result
|
|
|
* @param particle is the particle we are computed the position for
|
|
|
+ * @param isLocal defines if the position should be set in local space
|
|
|
*/
|
|
|
- startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle): void;
|
|
|
+ startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
|
|
|
/**
|
|
|
* Clones the current emitter and returns a copy of it
|
|
|
* @returns the new emitter
|
|
@@ -12817,15 +12833,17 @@ declare module "babylonjs/Particles/EmitterTypes/pointParticleEmitter" {
|
|
|
* @param worldMatrix is the world matrix of the particle system
|
|
|
* @param directionToUpdate is the direction vector to update with the result
|
|
|
* @param particle is the particle we are computed the direction for
|
|
|
+ * @param isLocal defines if the direction should be set in local space
|
|
|
*/
|
|
|
- startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle): void;
|
|
|
+ startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
|
|
|
/**
|
|
|
* Called by the particle System when the position is computed for the created particle.
|
|
|
* @param worldMatrix is the world matrix of the particle system
|
|
|
* @param positionToUpdate is the position vector to update with the result
|
|
|
* @param particle is the particle we are computed the position for
|
|
|
+ * @param isLocal defines if the position should be set in local space
|
|
|
*/
|
|
|
- startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle): void;
|
|
|
+ startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
|
|
|
/**
|
|
|
* Clones the current emitter and returns a copy of it
|
|
|
* @returns the new emitter
|
|
@@ -12904,15 +12922,17 @@ declare module "babylonjs/Particles/EmitterTypes/sphereParticleEmitter" {
|
|
|
* @param worldMatrix is the world matrix of the particle system
|
|
|
* @param directionToUpdate is the direction vector to update with the result
|
|
|
* @param particle is the particle we are computed the direction for
|
|
|
+ * @param isLocal defines if the direction should be set in local space
|
|
|
*/
|
|
|
- startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle): void;
|
|
|
+ startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
|
|
|
/**
|
|
|
* Called by the particle System when the position is computed for the created particle.
|
|
|
* @param worldMatrix is the world matrix of the particle system
|
|
|
* @param positionToUpdate is the position vector to update with the result
|
|
|
* @param particle is the particle we are computed the position for
|
|
|
+ * @param isLocal defines if the position should be set in local space
|
|
|
*/
|
|
|
- startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle): void;
|
|
|
+ startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
|
|
|
/**
|
|
|
* Clones the current emitter and returns a copy of it
|
|
|
* @returns the new emitter
|
|
@@ -13040,15 +13060,17 @@ declare module "babylonjs/Particles/EmitterTypes/customParticleEmitter" {
|
|
|
* @param worldMatrix is the world matrix of the particle system
|
|
|
* @param directionToUpdate is the direction vector to update with the result
|
|
|
* @param particle is the particle we are computed the direction for
|
|
|
+ * @param isLocal defines if the direction should be set in local space
|
|
|
*/
|
|
|
- startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle): void;
|
|
|
+ startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
|
|
|
/**
|
|
|
* Called by the particle System when the position is computed for the created particle.
|
|
|
* @param worldMatrix is the world matrix of the particle system
|
|
|
* @param positionToUpdate is the position vector to update with the result
|
|
|
* @param particle is the particle we are computed the position for
|
|
|
+ * @param isLocal defines if the position should be set in local space
|
|
|
*/
|
|
|
- startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle): void;
|
|
|
+ startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
|
|
|
/**
|
|
|
* Clones the current emitter and returns a copy of it
|
|
|
* @returns the new emitter
|
|
@@ -13123,15 +13145,17 @@ declare module "babylonjs/Particles/EmitterTypes/meshParticleEmitter" {
|
|
|
* @param worldMatrix is the world matrix of the particle system
|
|
|
* @param directionToUpdate is the direction vector to update with the result
|
|
|
* @param particle is the particle we are computed the direction for
|
|
|
+ * @param isLocal defines if the direction should be set in local space
|
|
|
*/
|
|
|
- startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle): void;
|
|
|
+ startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
|
|
|
/**
|
|
|
* Called by the particle System when the position is computed for the created particle.
|
|
|
* @param worldMatrix is the world matrix of the particle system
|
|
|
* @param positionToUpdate is the position vector to update with the result
|
|
|
* @param particle is the particle we are computed the position for
|
|
|
+ * @param isLocal defines if the position should be set in local space
|
|
|
*/
|
|
|
- startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle): void;
|
|
|
+ startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
|
|
|
/**
|
|
|
* Clones the current emitter and returns a copy of it
|
|
|
* @returns the new emitter
|
|
@@ -13394,6 +13418,10 @@ declare module "babylonjs/Particles/IParticleSystem" {
|
|
|
*/
|
|
|
disposeOnStop: boolean;
|
|
|
/**
|
|
|
+ * Specifies if the particles are updated in emitter local space or world space
|
|
|
+ */
|
|
|
+ isLocal: boolean;
|
|
|
+ /**
|
|
|
* Gets the maximum number of particles active at the same time.
|
|
|
* @returns The max number of active particles.
|
|
|
*/
|
|
@@ -65618,6 +65646,12 @@ declare module "babylonjs/Particles/gpuParticleSystem" {
|
|
|
set activeParticleCount(value: number);
|
|
|
private _preWarmDone;
|
|
|
/**
|
|
|
+ * Specifies if the particles are updated in emitter local space or world space.
|
|
|
+ * This is always false for GPU particles
|
|
|
+ */
|
|
|
+ get isLocal(): boolean;
|
|
|
+ set isLocal(value: boolean);
|
|
|
+ /**
|
|
|
* Is this system ready to be used/rendered
|
|
|
* @return true if the system is ready
|
|
|
*/
|
|
@@ -84834,6 +84868,10 @@ declare module BABYLON {
|
|
|
* The current active Sub-systems, this property is used by the root particle system only.
|
|
|
*/
|
|
|
activeSubSystems: Array<ParticleSystem>;
|
|
|
+ /**
|
|
|
+ * Specifies if the particles are updated in emitter local space or world space
|
|
|
+ */
|
|
|
+ isLocal: boolean;
|
|
|
private _rootParticleSystem;
|
|
|
/**
|
|
|
* Gets the current list of active particles
|
|
@@ -85252,6 +85290,8 @@ declare module BABYLON {
|
|
|
_randomNoiseCoordinates1: Vector3;
|
|
|
/** @hidden */
|
|
|
_randomNoiseCoordinates2: Vector3;
|
|
|
+ /** @hidden */
|
|
|
+ _localPosition?: Vector3;
|
|
|
/**
|
|
|
* Creates a new instance Particle
|
|
|
* @param particleSystem the particle system the particle belongs to
|
|
@@ -85290,15 +85330,17 @@ declare module BABYLON {
|
|
|
* @param worldMatrix is the world matrix of the particle system
|
|
|
* @param directionToUpdate is the direction vector to update with the result
|
|
|
* @param particle is the particle we are computed the direction for
|
|
|
+ * @param isLocal defines if the direction should be set in local space
|
|
|
*/
|
|
|
- startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle): void;
|
|
|
+ startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
|
|
|
/**
|
|
|
* Called by the particle System when the position is computed for the created particle.
|
|
|
* @param worldMatrix is the world matrix of the particle system
|
|
|
* @param positionToUpdate is the position vector to update with the result
|
|
|
* @param particle is the particle we are computed the position for
|
|
|
+ * @param isLocal defines if the position should be set in local space
|
|
|
*/
|
|
|
- startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle): void;
|
|
|
+ startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
|
|
|
/**
|
|
|
* Clones the current emitter and returns a copy of it
|
|
|
* @returns the new emitter
|
|
@@ -85363,15 +85405,17 @@ declare module BABYLON {
|
|
|
* @param worldMatrix is the world matrix of the particle system
|
|
|
* @param directionToUpdate is the direction vector to update with the result
|
|
|
* @param particle is the particle we are computed the direction for
|
|
|
+ * @param isLocal defines if the direction should be set in local space
|
|
|
*/
|
|
|
- startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle): void;
|
|
|
+ startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
|
|
|
/**
|
|
|
* Called by the particle System when the position is computed for the created particle.
|
|
|
* @param worldMatrix is the world matrix of the particle system
|
|
|
* @param positionToUpdate is the position vector to update with the result
|
|
|
* @param particle is the particle we are computed the position for
|
|
|
+ * @param isLocal defines if the position should be set in local space
|
|
|
*/
|
|
|
- startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle): void;
|
|
|
+ startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
|
|
|
/**
|
|
|
* Clones the current emitter and returns a copy of it
|
|
|
* @returns the new emitter
|
|
@@ -85453,15 +85497,17 @@ declare module BABYLON {
|
|
|
* @param worldMatrix is the world matrix of the particle system
|
|
|
* @param directionToUpdate is the direction vector to update with the result
|
|
|
* @param particle is the particle we are computed the direction for
|
|
|
+ * @param isLocal defines if the direction should be set in local space
|
|
|
*/
|
|
|
- startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle): void;
|
|
|
+ startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
|
|
|
/**
|
|
|
* Called by the particle System when the position is computed for the created particle.
|
|
|
* @param worldMatrix is the world matrix of the particle system
|
|
|
* @param positionToUpdate is the position vector to update with the result
|
|
|
* @param particle is the particle we are computed the position for
|
|
|
+ * @param isLocal defines if the position should be set in local space
|
|
|
*/
|
|
|
- startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle): void;
|
|
|
+ startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
|
|
|
/**
|
|
|
* Clones the current emitter and returns a copy of it
|
|
|
* @returns the new emitter
|
|
@@ -85545,15 +85591,17 @@ declare module BABYLON {
|
|
|
* @param worldMatrix is the world matrix of the particle system
|
|
|
* @param directionToUpdate is the direction vector to update with the result
|
|
|
* @param particle is the particle we are computed the direction for
|
|
|
+ * @param isLocal defines if the direction should be set in local space
|
|
|
*/
|
|
|
- startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle): void;
|
|
|
+ startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
|
|
|
/**
|
|
|
* Called by the particle System when the position is computed for the created particle.
|
|
|
* @param worldMatrix is the world matrix of the particle system
|
|
|
* @param positionToUpdate is the position vector to update with the result
|
|
|
* @param particle is the particle we are computed the position for
|
|
|
+ * @param isLocal defines if the position should be set in local space
|
|
|
*/
|
|
|
- startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle): void;
|
|
|
+ startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
|
|
|
/**
|
|
|
* Clones the current emitter and returns a copy of it
|
|
|
* @returns the new emitter
|
|
@@ -85696,15 +85744,17 @@ declare module BABYLON {
|
|
|
* @param worldMatrix is the world matrix of the particle system
|
|
|
* @param directionToUpdate is the direction vector to update with the result
|
|
|
* @param particle is the particle we are computed the direction for
|
|
|
+ * @param isLocal defines if the direction should be set in local space
|
|
|
*/
|
|
|
- startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle): void;
|
|
|
+ startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
|
|
|
/**
|
|
|
* Called by the particle System when the position is computed for the created particle.
|
|
|
* @param worldMatrix is the world matrix of the particle system
|
|
|
* @param positionToUpdate is the position vector to update with the result
|
|
|
* @param particle is the particle we are computed the position for
|
|
|
+ * @param isLocal defines if the position should be set in local space
|
|
|
*/
|
|
|
- startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle): void;
|
|
|
+ startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
|
|
|
/**
|
|
|
* Clones the current emitter and returns a copy of it
|
|
|
* @returns the new emitter
|
|
@@ -85760,15 +85810,17 @@ declare module BABYLON {
|
|
|
* @param worldMatrix is the world matrix of the particle system
|
|
|
* @param directionToUpdate is the direction vector to update with the result
|
|
|
* @param particle is the particle we are computed the direction for
|
|
|
+ * @param isLocal defines if the direction should be set in local space
|
|
|
*/
|
|
|
- startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle): void;
|
|
|
+ startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
|
|
|
/**
|
|
|
* Called by the particle System when the position is computed for the created particle.
|
|
|
* @param worldMatrix is the world matrix of the particle system
|
|
|
* @param positionToUpdate is the position vector to update with the result
|
|
|
* @param particle is the particle we are computed the position for
|
|
|
+ * @param isLocal defines if the position should be set in local space
|
|
|
*/
|
|
|
- startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle): void;
|
|
|
+ startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
|
|
|
/**
|
|
|
* Clones the current emitter and returns a copy of it
|
|
|
* @returns the new emitter
|
|
@@ -85843,15 +85895,17 @@ declare module BABYLON {
|
|
|
* @param worldMatrix is the world matrix of the particle system
|
|
|
* @param directionToUpdate is the direction vector to update with the result
|
|
|
* @param particle is the particle we are computed the direction for
|
|
|
+ * @param isLocal defines if the direction should be set in local space
|
|
|
*/
|
|
|
- startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle): void;
|
|
|
+ startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
|
|
|
/**
|
|
|
* Called by the particle System when the position is computed for the created particle.
|
|
|
* @param worldMatrix is the world matrix of the particle system
|
|
|
* @param positionToUpdate is the position vector to update with the result
|
|
|
* @param particle is the particle we are computed the position for
|
|
|
+ * @param isLocal defines if the position should be set in local space
|
|
|
*/
|
|
|
- startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle): void;
|
|
|
+ startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
|
|
|
/**
|
|
|
* Clones the current emitter and returns a copy of it
|
|
|
* @returns the new emitter
|
|
@@ -85974,15 +86028,17 @@ declare module BABYLON {
|
|
|
* @param worldMatrix is the world matrix of the particle system
|
|
|
* @param directionToUpdate is the direction vector to update with the result
|
|
|
* @param particle is the particle we are computed the direction for
|
|
|
+ * @param isLocal defines if the direction should be set in local space
|
|
|
*/
|
|
|
- startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle): void;
|
|
|
+ startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
|
|
|
/**
|
|
|
* Called by the particle System when the position is computed for the created particle.
|
|
|
* @param worldMatrix is the world matrix of the particle system
|
|
|
* @param positionToUpdate is the position vector to update with the result
|
|
|
* @param particle is the particle we are computed the position for
|
|
|
+ * @param isLocal defines if the position should be set in local space
|
|
|
*/
|
|
|
- startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle): void;
|
|
|
+ startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
|
|
|
/**
|
|
|
* Clones the current emitter and returns a copy of it
|
|
|
* @returns the new emitter
|
|
@@ -86051,15 +86107,17 @@ declare module BABYLON {
|
|
|
* @param worldMatrix is the world matrix of the particle system
|
|
|
* @param directionToUpdate is the direction vector to update with the result
|
|
|
* @param particle is the particle we are computed the direction for
|
|
|
+ * @param isLocal defines if the direction should be set in local space
|
|
|
*/
|
|
|
- startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle): void;
|
|
|
+ startDirectionFunction(worldMatrix: Matrix, directionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
|
|
|
/**
|
|
|
* Called by the particle System when the position is computed for the created particle.
|
|
|
* @param worldMatrix is the world matrix of the particle system
|
|
|
* @param positionToUpdate is the position vector to update with the result
|
|
|
* @param particle is the particle we are computed the position for
|
|
|
+ * @param isLocal defines if the position should be set in local space
|
|
|
*/
|
|
|
- startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle): void;
|
|
|
+ startPositionFunction(worldMatrix: Matrix, positionToUpdate: Vector3, particle: Particle, isLocal: boolean): void;
|
|
|
/**
|
|
|
* Clones the current emitter and returns a copy of it
|
|
|
* @returns the new emitter
|
|
@@ -86301,6 +86359,10 @@ declare module BABYLON {
|
|
|
*/
|
|
|
disposeOnStop: boolean;
|
|
|
/**
|
|
|
+ * Specifies if the particles are updated in emitter local space or world space
|
|
|
+ */
|
|
|
+ isLocal: boolean;
|
|
|
+ /**
|
|
|
* Gets the maximum number of particles active at the same time.
|
|
|
* @returns The max number of active particles.
|
|
|
*/
|
|
@@ -135642,6 +135704,12 @@ declare module BABYLON {
|
|
|
set activeParticleCount(value: number);
|
|
|
private _preWarmDone;
|
|
|
/**
|
|
|
+ * Specifies if the particles are updated in emitter local space or world space.
|
|
|
+ * This is always false for GPU particles
|
|
|
+ */
|
|
|
+ get isLocal(): boolean;
|
|
|
+ set isLocal(value: boolean);
|
|
|
+ /**
|
|
|
* Is this system ready to be used/rendered
|
|
|
* @return true if the system is ready
|
|
|
*/
|