baseParticleSystem.d.ts 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547
  1. import type { Nullable } from "../types";
  2. import { Vector2, Vector3 } from "../Maths/math.vector";
  3. import type { AbstractMesh } from "../Meshes/abstractMesh";
  4. import type { ImageProcessingConfiguration } from "../Materials/imageProcessingConfiguration";
  5. import { ImageProcessingConfigurationDefines } from "../Materials/imageProcessingConfiguration.defines";
  6. import type { ColorGradient, FactorGradient, Color3Gradient, IValueGradient } from "../Misc/gradients";
  7. import type { BoxParticleEmitter } from "../Particles/EmitterTypes/boxParticleEmitter";
  8. import type { BaseTexture } from "../Materials/Textures/baseTexture";
  9. import { Color4 } from "../Maths/math.color";
  10. import type { AbstractEngine } from "../Engines/abstractEngine";
  11. import "../Engines/Extensions/engine.dynamicBuffer";
  12. import type { IClipPlanesHolder } from "../Misc/interfaces/iClipPlanesHolder";
  13. import type { Plane } from "../Maths/math.plane";
  14. import type { Animation } from "../Animations/animation";
  15. import type { Scene } from "../scene";
  16. import type { ProceduralTexture } from "../Materials/Textures/Procedurals/proceduralTexture";
  17. import type { RawTexture } from "../Materials/Textures/rawTexture";
  18. import type { IParticleEmitterType } from "./EmitterTypes/IParticleEmitterType";
  19. import type { PointParticleEmitter } from "./EmitterTypes/pointParticleEmitter";
  20. import type { HemisphericParticleEmitter } from "./EmitterTypes/hemisphericParticleEmitter";
  21. import type { SphereDirectedParticleEmitter, SphereParticleEmitter } from "./EmitterTypes/sphereParticleEmitter";
  22. import type { CylinderDirectedParticleEmitter, CylinderParticleEmitter } from "./EmitterTypes/cylinderParticleEmitter";
  23. import type { ConeParticleEmitter } from "./EmitterTypes/coneParticleEmitter";
  24. /**
  25. * This represents the base class for particle system in Babylon.
  26. * Particles are often small sprites used to simulate hard-to-reproduce phenomena like fire, smoke, water, or abstract visual effects like magic glitter and faery dust.
  27. * Particles can take different shapes while emitted like box, sphere, cone or you can write your custom function.
  28. * @example https://doc.babylonjs.com/features/featuresDeepDive/particles/particle_system/particle_system_intro
  29. */
  30. export declare class BaseParticleSystem implements IClipPlanesHolder {
  31. /**
  32. * Source color is added to the destination color without alpha affecting the result
  33. */
  34. static BLENDMODE_ONEONE: number;
  35. /**
  36. * Blend current color and particle color using particle’s alpha
  37. */
  38. static BLENDMODE_STANDARD: number;
  39. /**
  40. * Add current color and particle color multiplied by particle’s alpha
  41. */
  42. static BLENDMODE_ADD: number;
  43. /**
  44. * Multiply current color with particle color
  45. */
  46. static BLENDMODE_MULTIPLY: number;
  47. /**
  48. * Multiply current color with particle color then add current color and particle color multiplied by particle’s alpha
  49. */
  50. static BLENDMODE_MULTIPLYADD: number;
  51. /**
  52. * List of animations used by the particle system.
  53. */
  54. animations: Animation[];
  55. /**
  56. * Gets or sets the unique id of the particle system
  57. */
  58. uniqueId: number;
  59. /**
  60. * The id of the Particle system.
  61. */
  62. id: string;
  63. /**
  64. * The friendly name of the Particle system.
  65. */
  66. name: string;
  67. /**
  68. * Snippet ID if the particle system was created from the snippet server
  69. */
  70. snippetId: string;
  71. /**
  72. * The rendering group used by the Particle system to chose when to render.
  73. */
  74. renderingGroupId: number;
  75. /**
  76. * The emitter represents the Mesh or position we are attaching the particle system to.
  77. */
  78. emitter: Nullable<AbstractMesh | Vector3>;
  79. /**
  80. * The maximum number of particles to emit per frame
  81. */
  82. emitRate: number;
  83. /**
  84. * If you want to launch only a few particles at once, that can be done, as well.
  85. */
  86. manualEmitCount: number;
  87. /**
  88. * The overall motion speed (0.01 is default update speed, faster updates = faster animation)
  89. */
  90. updateSpeed: number;
  91. /**
  92. * The amount of time the particle system is running (depends of the overall update speed).
  93. */
  94. targetStopDuration: number;
  95. /**
  96. * Specifies whether the particle system will be disposed once it reaches the end of the animation.
  97. */
  98. disposeOnStop: boolean;
  99. /**
  100. * Minimum power of emitting particles.
  101. */
  102. minEmitPower: number;
  103. /**
  104. * Maximum power of emitting particles.
  105. */
  106. maxEmitPower: number;
  107. /**
  108. * Minimum life time of emitting particles.
  109. */
  110. minLifeTime: number;
  111. /**
  112. * Maximum life time of emitting particles.
  113. */
  114. maxLifeTime: number;
  115. /**
  116. * Minimum Size of emitting particles.
  117. */
  118. minSize: number;
  119. /**
  120. * Maximum Size of emitting particles.
  121. */
  122. maxSize: number;
  123. /**
  124. * Minimum scale of emitting particles on X axis.
  125. */
  126. minScaleX: number;
  127. /**
  128. * Maximum scale of emitting particles on X axis.
  129. */
  130. maxScaleX: number;
  131. /**
  132. * Minimum scale of emitting particles on Y axis.
  133. */
  134. minScaleY: number;
  135. /**
  136. * Maximum scale of emitting particles on Y axis.
  137. */
  138. maxScaleY: number;
  139. /**
  140. * Gets or sets the minimal initial rotation in radians.
  141. */
  142. minInitialRotation: number;
  143. /**
  144. * Gets or sets the maximal initial rotation in radians.
  145. */
  146. maxInitialRotation: number;
  147. /**
  148. * Minimum angular speed of emitting particles (Z-axis rotation for each particle).
  149. */
  150. minAngularSpeed: number;
  151. /**
  152. * Maximum angular speed of emitting particles (Z-axis rotation for each particle).
  153. */
  154. maxAngularSpeed: number;
  155. /**
  156. * The texture used to render each particle. (this can be a spritesheet)
  157. */
  158. particleTexture: Nullable<BaseTexture>;
  159. /**
  160. * The layer mask we are rendering the particles through.
  161. */
  162. layerMask: number;
  163. /**
  164. * This can help using your own shader to render the particle system.
  165. * The according effect will be created
  166. */
  167. customShader: any;
  168. /**
  169. * By default particle system starts as soon as they are created. This prevents the
  170. * automatic start to happen and let you decide when to start emitting particles.
  171. */
  172. preventAutoStart: boolean;
  173. /**
  174. * Gets or sets a boolean indicating that this particle system will allow fog to be rendered on it (false by default)
  175. */
  176. applyFog: boolean;
  177. /** @internal */
  178. _wasDispatched: boolean;
  179. protected _rootUrl: string;
  180. private _noiseTexture;
  181. /**
  182. * Gets or sets a texture used to add random noise to particle positions
  183. */
  184. get noiseTexture(): Nullable<ProceduralTexture>;
  185. set noiseTexture(value: Nullable<ProceduralTexture>);
  186. /** Gets or sets the strength to apply to the noise value (default is (10, 10, 10)) */
  187. noiseStrength: Vector3;
  188. /**
  189. * Callback triggered when the particle animation is ending.
  190. */
  191. onAnimationEnd: Nullable<() => void>;
  192. /**
  193. * Blend mode use to render the particle, it can be either ParticleSystem.BLENDMODE_ONEONE or ParticleSystem.BLENDMODE_STANDARD.
  194. */
  195. blendMode: number;
  196. /**
  197. * Forces the particle to write their depth information to the depth buffer. This can help preventing other draw calls
  198. * to override the particles.
  199. */
  200. forceDepthWrite: boolean;
  201. /** Gets or sets a value indicating how many cycles (or frames) must be executed before first rendering (this value has to be set before starting the system). Default is 0 */
  202. preWarmCycles: number;
  203. /** Gets or sets a value indicating the time step multiplier to use in pre-warm mode (default is 1) */
  204. preWarmStepOffset: number;
  205. /**
  206. * If using a spritesheet (isAnimationSheetEnabled) defines the speed of the sprite loop (default is 1 meaning the animation will play once during the entire particle lifetime)
  207. */
  208. spriteCellChangeSpeed: number;
  209. /**
  210. * If using a spritesheet (isAnimationSheetEnabled) defines the first sprite cell to display
  211. */
  212. startSpriteCellID: number;
  213. /**
  214. * If using a spritesheet (isAnimationSheetEnabled) defines the last sprite cell to display
  215. */
  216. endSpriteCellID: number;
  217. /**
  218. * If using a spritesheet (isAnimationSheetEnabled), defines the sprite cell width to use
  219. */
  220. spriteCellWidth: number;
  221. /**
  222. * If using a spritesheet (isAnimationSheetEnabled), defines the sprite cell height to use
  223. */
  224. spriteCellHeight: number;
  225. /**
  226. * If using a spritesheet (isAnimationSheetEnabled), defines wether the sprite animation is looping
  227. */
  228. spriteCellLoop: boolean;
  229. /**
  230. * This allows the system to random pick the start cell ID between startSpriteCellID and endSpriteCellID
  231. */
  232. spriteRandomStartCell: boolean;
  233. /** Gets or sets a Vector2 used to move the pivot (by default (0,0)) */
  234. translationPivot: Vector2;
  235. /** @internal */
  236. _isAnimationSheetEnabled: boolean;
  237. /**
  238. * Gets or sets a boolean indicating that hosted animations (in the system.animations array) must be started when system.start() is called
  239. */
  240. beginAnimationOnStart: boolean;
  241. /**
  242. * Gets or sets the frame to start the animation from when beginAnimationOnStart is true
  243. */
  244. beginAnimationFrom: number;
  245. /**
  246. * Gets or sets the frame to end the animation on when beginAnimationOnStart is true
  247. */
  248. beginAnimationTo: number;
  249. /**
  250. * Gets or sets a boolean indicating if animations must loop when beginAnimationOnStart is true
  251. */
  252. beginAnimationLoop: boolean;
  253. /**
  254. * Gets or sets a world offset applied to all particles
  255. */
  256. worldOffset: Vector3;
  257. /**
  258. * Gets or sets the active clipplane 1
  259. */
  260. clipPlane: Nullable<Plane>;
  261. /**
  262. * Gets or sets the active clipplane 2
  263. */
  264. clipPlane2: Nullable<Plane>;
  265. /**
  266. * Gets or sets the active clipplane 3
  267. */
  268. clipPlane3: Nullable<Plane>;
  269. /**
  270. * Gets or sets the active clipplane 4
  271. */
  272. clipPlane4: Nullable<Plane>;
  273. /**
  274. * Gets or sets the active clipplane 5
  275. */
  276. clipPlane5: Nullable<Plane>;
  277. /**
  278. * Gets or sets the active clipplane 6
  279. */
  280. clipPlane6: Nullable<Plane>;
  281. /**
  282. * Gets or sets whether an animation sprite sheet is enabled or not on the particle system
  283. */
  284. get isAnimationSheetEnabled(): boolean;
  285. set isAnimationSheetEnabled(value: boolean);
  286. private _useLogarithmicDepth;
  287. /**
  288. * Gets or sets a boolean enabling the use of logarithmic depth buffers, which is good for wide depth buffers.
  289. */
  290. get useLogarithmicDepth(): boolean;
  291. set useLogarithmicDepth(value: boolean);
  292. /**
  293. * Get hosting scene
  294. * @returns the scene
  295. */
  296. getScene(): Nullable<Scene>;
  297. /**
  298. * You can use gravity if you want to give an orientation to your particles.
  299. */
  300. gravity: Vector3;
  301. protected _colorGradients: Nullable<Array<ColorGradient>>;
  302. protected _sizeGradients: Nullable<Array<FactorGradient>>;
  303. protected _lifeTimeGradients: Nullable<Array<FactorGradient>>;
  304. protected _angularSpeedGradients: Nullable<Array<FactorGradient>>;
  305. protected _velocityGradients: Nullable<Array<FactorGradient>>;
  306. protected _limitVelocityGradients: Nullable<Array<FactorGradient>>;
  307. protected _dragGradients: Nullable<Array<FactorGradient>>;
  308. protected _emitRateGradients: Nullable<Array<FactorGradient>>;
  309. protected _startSizeGradients: Nullable<Array<FactorGradient>>;
  310. protected _rampGradients: Nullable<Array<Color3Gradient>>;
  311. protected _colorRemapGradients: Nullable<Array<FactorGradient>>;
  312. protected _alphaRemapGradients: Nullable<Array<FactorGradient>>;
  313. protected _hasTargetStopDurationDependantGradient(): boolean | null;
  314. /**
  315. * Defines the delay in milliseconds before starting the system (0 by default)
  316. */
  317. startDelay: number;
  318. /**
  319. * Gets the current list of drag gradients.
  320. * You must use addDragGradient and removeDragGradient to update this list
  321. * @returns the list of drag gradients
  322. */
  323. getDragGradients(): Nullable<Array<FactorGradient>>;
  324. /** Gets or sets a value indicating the damping to apply if the limit velocity factor is reached */
  325. limitVelocityDamping: number;
  326. /**
  327. * Gets the current list of limit velocity gradients.
  328. * You must use addLimitVelocityGradient and removeLimitVelocityGradient to update this list
  329. * @returns the list of limit velocity gradients
  330. */
  331. getLimitVelocityGradients(): Nullable<Array<FactorGradient>>;
  332. /**
  333. * Gets the current list of color gradients.
  334. * You must use addColorGradient and removeColorGradient to update this list
  335. * @returns the list of color gradients
  336. */
  337. getColorGradients(): Nullable<Array<ColorGradient>>;
  338. /**
  339. * Gets the current list of size gradients.
  340. * You must use addSizeGradient and removeSizeGradient to update this list
  341. * @returns the list of size gradients
  342. */
  343. getSizeGradients(): Nullable<Array<FactorGradient>>;
  344. /**
  345. * Gets the current list of color remap gradients.
  346. * You must use addColorRemapGradient and removeColorRemapGradient to update this list
  347. * @returns the list of color remap gradients
  348. */
  349. getColorRemapGradients(): Nullable<Array<FactorGradient>>;
  350. /**
  351. * Gets the current list of alpha remap gradients.
  352. * You must use addAlphaRemapGradient and removeAlphaRemapGradient to update this list
  353. * @returns the list of alpha remap gradients
  354. */
  355. getAlphaRemapGradients(): Nullable<Array<FactorGradient>>;
  356. /**
  357. * Gets the current list of life time gradients.
  358. * You must use addLifeTimeGradient and removeLifeTimeGradient to update this list
  359. * @returns the list of life time gradients
  360. */
  361. getLifeTimeGradients(): Nullable<Array<FactorGradient>>;
  362. /**
  363. * Gets the current list of angular speed gradients.
  364. * You must use addAngularSpeedGradient and removeAngularSpeedGradient to update this list
  365. * @returns the list of angular speed gradients
  366. */
  367. getAngularSpeedGradients(): Nullable<Array<FactorGradient>>;
  368. /**
  369. * Gets the current list of velocity gradients.
  370. * You must use addVelocityGradient and removeVelocityGradient to update this list
  371. * @returns the list of velocity gradients
  372. */
  373. getVelocityGradients(): Nullable<Array<FactorGradient>>;
  374. /**
  375. * Gets the current list of start size gradients.
  376. * You must use addStartSizeGradient and removeStartSizeGradient to update this list
  377. * @returns the list of start size gradients
  378. */
  379. getStartSizeGradients(): Nullable<Array<FactorGradient>>;
  380. /**
  381. * Gets the current list of emit rate gradients.
  382. * You must use addEmitRateGradient and removeEmitRateGradient to update this list
  383. * @returns the list of emit rate gradients
  384. */
  385. getEmitRateGradients(): Nullable<Array<FactorGradient>>;
  386. /**
  387. * Random direction of each particle after it has been emitted, between direction1 and direction2 vectors.
  388. * This only works when particleEmitterTyps is a BoxParticleEmitter
  389. */
  390. get direction1(): Vector3;
  391. set direction1(value: Vector3);
  392. /**
  393. * Random direction of each particle after it has been emitted, between direction1 and direction2 vectors.
  394. * This only works when particleEmitterTyps is a BoxParticleEmitter
  395. */
  396. get direction2(): Vector3;
  397. set direction2(value: Vector3);
  398. /**
  399. * Minimum box point around our emitter. Our emitter is the center of particles source, but if you want your particles to emit from more than one point, then you can tell it to do so.
  400. * This only works when particleEmitterTyps is a BoxParticleEmitter
  401. */
  402. get minEmitBox(): Vector3;
  403. set minEmitBox(value: Vector3);
  404. /**
  405. * Maximum box point around our emitter. Our emitter is the center of particles source, but if you want your particles to emit from more than one point, then you can tell it to do so.
  406. * This only works when particleEmitterTyps is a BoxParticleEmitter
  407. */
  408. get maxEmitBox(): Vector3;
  409. set maxEmitBox(value: Vector3);
  410. /**
  411. * Random color of each particle after it has been emitted, between color1 and color2 vectors
  412. */
  413. color1: Color4;
  414. /**
  415. * Random color of each particle after it has been emitted, between color1 and color2 vectors
  416. */
  417. color2: Color4;
  418. /**
  419. * Color the particle will have at the end of its lifetime
  420. */
  421. colorDead: Color4;
  422. /**
  423. * An optional mask to filter some colors out of the texture, or filter a part of the alpha channel
  424. */
  425. textureMask: Color4;
  426. /**
  427. * The particle emitter type defines the emitter used by the particle system.
  428. * It can be for example box, sphere, or cone...
  429. */
  430. particleEmitterType: IParticleEmitterType;
  431. /** @internal */
  432. _isSubEmitter: boolean;
  433. /** @internal */
  434. _billboardMode: number;
  435. /**
  436. * Gets or sets the billboard mode to use when isBillboardBased = true.
  437. * Value can be: ParticleSystem.BILLBOARDMODE_ALL, ParticleSystem.BILLBOARDMODE_Y, ParticleSystem.BILLBOARDMODE_STRETCHED
  438. */
  439. get billboardMode(): number;
  440. set billboardMode(value: number);
  441. /** @internal */
  442. _isBillboardBased: boolean;
  443. /**
  444. * Gets or sets a boolean indicating if the particles must be rendered as billboard or aligned with the direction
  445. */
  446. get isBillboardBased(): boolean;
  447. set isBillboardBased(value: boolean);
  448. /**
  449. * The scene the particle system belongs to.
  450. */
  451. protected _scene: Nullable<Scene>;
  452. /**
  453. * The engine the particle system belongs to.
  454. */
  455. protected _engine: AbstractEngine;
  456. /**
  457. * Local cache of defines for image processing.
  458. */
  459. protected _imageProcessingConfigurationDefines: ImageProcessingConfigurationDefines;
  460. /**
  461. * Default configuration related to image processing available in the standard Material.
  462. */
  463. protected _imageProcessingConfiguration: Nullable<ImageProcessingConfiguration>;
  464. /**
  465. * Gets the image processing configuration used either in this material.
  466. */
  467. get imageProcessingConfiguration(): Nullable<ImageProcessingConfiguration>;
  468. /**
  469. * Sets the Default image processing configuration used either in the this material.
  470. *
  471. * If sets to null, the scene one is in use.
  472. */
  473. set imageProcessingConfiguration(value: Nullable<ImageProcessingConfiguration>);
  474. /**
  475. * Attaches a new image processing configuration to the Standard Material.
  476. * @param configuration
  477. */
  478. protected _attachImageProcessingConfiguration(configuration: Nullable<ImageProcessingConfiguration>): void;
  479. /** @internal */
  480. protected _reset(): void;
  481. /**
  482. * @internal
  483. */
  484. protected _removeGradientAndTexture(gradient: number, gradients: Nullable<IValueGradient[]>, texture: Nullable<RawTexture>): BaseParticleSystem;
  485. /**
  486. * Instantiates a particle system.
  487. * Particles are often small sprites used to simulate hard-to-reproduce phenomena like fire, smoke, water, or abstract visual effects like magic glitter and faery dust.
  488. * @param name The name of the particle system
  489. */
  490. constructor(name: string);
  491. /**
  492. * Creates a Point Emitter for the particle system (emits directly from the emitter position)
  493. * @param direction1 Particles are emitted between the direction1 and direction2 from within the box
  494. * @param direction2 Particles are emitted between the direction1 and direction2 from within the box
  495. */
  496. createPointEmitter(direction1: Vector3, direction2: Vector3): PointParticleEmitter;
  497. /**
  498. * Creates a Hemisphere Emitter for the particle system (emits along the hemisphere radius)
  499. * @param radius The radius of the hemisphere to emit from
  500. * @param radiusRange The range of the hemisphere to emit from [0-1] 0 Surface Only, 1 Entire Radius
  501. */
  502. createHemisphericEmitter(radius?: number, radiusRange?: number): HemisphericParticleEmitter;
  503. /**
  504. * Creates a Sphere Emitter for the particle system (emits along the sphere radius)
  505. * @param radius The radius of the sphere to emit from
  506. * @param radiusRange The range of the sphere to emit from [0-1] 0 Surface Only, 1 Entire Radius
  507. */
  508. createSphereEmitter(radius?: number, radiusRange?: number): SphereParticleEmitter;
  509. /**
  510. * Creates a Directed Sphere Emitter for the particle system (emits between direction1 and direction2)
  511. * @param radius The radius of the sphere to emit from
  512. * @param direction1 Particles are emitted between the direction1 and direction2 from within the sphere
  513. * @param direction2 Particles are emitted between the direction1 and direction2 from within the sphere
  514. */
  515. createDirectedSphereEmitter(radius?: number, direction1?: Vector3, direction2?: Vector3): SphereDirectedParticleEmitter;
  516. /**
  517. * Creates a Cylinder Emitter for the particle system (emits from the cylinder to the particle position)
  518. * @param radius The radius of the emission cylinder
  519. * @param height The height of the emission cylinder
  520. * @param radiusRange The range of emission [0-1] 0 Surface only, 1 Entire Radius
  521. * @param directionRandomizer How much to randomize the particle direction [0-1]
  522. */
  523. createCylinderEmitter(radius?: number, height?: number, radiusRange?: number, directionRandomizer?: number): CylinderParticleEmitter;
  524. /**
  525. * Creates a Directed Cylinder Emitter for the particle system (emits between direction1 and direction2)
  526. * @param radius The radius of the cylinder to emit from
  527. * @param height The height of the emission cylinder
  528. * @param radiusRange the range of the emission cylinder [0-1] 0 Surface only, 1 Entire Radius (1 by default)
  529. * @param direction1 Particles are emitted between the direction1 and direction2 from within the cylinder
  530. * @param direction2 Particles are emitted between the direction1 and direction2 from within the cylinder
  531. */
  532. createDirectedCylinderEmitter(radius?: number, height?: number, radiusRange?: number, direction1?: Vector3, direction2?: Vector3): CylinderDirectedParticleEmitter;
  533. /**
  534. * Creates a Cone Emitter for the particle system (emits from the cone to the particle position)
  535. * @param radius The radius of the cone to emit from
  536. * @param angle The base angle of the cone
  537. */
  538. createConeEmitter(radius?: number, angle?: number): ConeParticleEmitter;
  539. /**
  540. * Creates a Box Emitter for the particle system. (emits between direction1 and direction2 from withing the box defined by minEmitBox and maxEmitBox)
  541. * @param direction1 Particles are emitted between the direction1 and direction2 from within the box
  542. * @param direction2 Particles are emitted between the direction1 and direction2 from within the box
  543. * @param minEmitBox Particles are emitted from the box between minEmitBox and maxEmitBox
  544. * @param maxEmitBox Particles are emitted from the box between minEmitBox and maxEmitBox
  545. */
  546. createBoxEmitter(direction1: Vector3, direction2: Vector3, minEmitBox: Vector3, maxEmitBox: Vector3): BoxParticleEmitter;
  547. }