babylon.particle.js 1.1 KB

123456789101112131415161718192021222324252627282930
  1. var BABYLON;
  2. (function (BABYLON) {
  3. var Particle = (function () {
  4. function Particle() {
  5. this.position = BABYLON.Vector3.Zero();
  6. this.direction = BABYLON.Vector3.Zero();
  7. this.color = new BABYLON.Color4(0, 0, 0, 0);
  8. this.colorStep = new BABYLON.Color4(0, 0, 0, 0);
  9. this.lifeTime = 1.0;
  10. this.age = 0;
  11. this.size = 0;
  12. this.angle = 0;
  13. this.angularSpeed = 0;
  14. }
  15. Particle.prototype.copyTo = function (other) {
  16. other.position.copyFrom(this.position);
  17. other.direction.copyFrom(this.direction);
  18. other.color.copyFrom(this.color);
  19. other.colorStep.copyFrom(this.colorStep);
  20. other.lifeTime = this.lifeTime;
  21. other.age = this.age;
  22. other.size = this.size;
  23. other.angle = this.angle;
  24. other.angularSpeed = this.angularSpeed;
  25. };
  26. return Particle;
  27. })();
  28. BABYLON.Particle = Particle;
  29. })(BABYLON || (BABYLON = {}));
  30. //# sourceMappingURL=babylon.particle.js.map