/
ParticleEmitter.js
40 lines (37 loc) · 1.08 KB
/
ParticleEmitter.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
define([
'../Core/DeveloperError'
], function(
DeveloperError) {
'use strict';
/**
* <p>
* An object that initializes a {@link Particle} from a {@link ParticleSystem}.
* </p>
* <p>
* This type describes an interface and is not intended to be instantiated directly.
* </p>
*
* @alias ParticleEmitter
* @constructor
*
* @see BoxEmitter
* @see CircleEmitter
* @see ConeEmitter
* @see SphereEmitter
*/
function ParticleEmitter(options) {
//>>includeStart('debug', pragmas.debug);
throw new DeveloperError('This type should not be instantiated directly. Instead, use BoxEmitter, CircleEmitter, ConeEmitter or SphereEmitter.');
//>>includeEnd('debug');
}
/**
* Initializes the given {Particle} by setting it's position and velocity.
*
* @private
* @param {Particle} The particle to initialize
*/
ParticleEmitter.prototype.emit = function(particle) {
DeveloperError.throwInstantiationError();
};
return ParticleEmitter;
});