|
@@ -29,6 +29,7 @@ import { Color3, Color4 } from '../Maths/math.color';
|
|
import { Epsilon } from '../Maths/math.constants';
|
|
import { Epsilon } from '../Maths/math.constants';
|
|
import { Plane } from '../Maths/math.plane';
|
|
import { Plane } from '../Maths/math.plane';
|
|
import { Axis } from '../Maths/math.axis';
|
|
import { Axis } from '../Maths/math.axis';
|
|
|
|
+import { IParticleSystem } from '../Particles/IParticleSystem';
|
|
|
|
|
|
declare type Ray = import("../Culling/ray").Ray;
|
|
declare type Ray = import("../Culling/ray").Ray;
|
|
declare type Collider = import("../Collisions/collider").Collider;
|
|
declare type Collider = import("../Collisions/collider").Collider;
|
|
@@ -2176,4 +2177,12 @@ export class AbstractMesh extends TransformNode implements IDisposable, ICullabl
|
|
throw _DevTools.WarnImport("EdgesRenderer");
|
|
throw _DevTools.WarnImport("EdgesRenderer");
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * This function returns all of the particle systems in the scene that use the mesh as an emitter.
|
|
|
|
+ * @returns an array of particle systems in the scene that use the mesh as an emitter
|
|
|
|
+ */
|
|
|
|
+ public getConnectedParticleSystems(): IParticleSystem[] {
|
|
|
|
+ return this._scene.particleSystems.filter((particleSystem) => particleSystem.emitter === this);
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|