ParticleEmitter.js 1.0 KB

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