babylon.particle.ts 840 B

12345678910111213141516171819202122232425
  1. module BABYLON {
  2. export class Particle {
  3. public position = Vector3.Zero();
  4. public direction = Vector3.Zero();
  5. public color = new Color4(0, 0, 0, 0);
  6. public colorStep = new Color4(0, 0, 0, 0);
  7. public lifeTime = 1.0;
  8. public age = 0;
  9. public size = 0;
  10. public angle = 0;
  11. public angularSpeed = 0;
  12. public copyTo(other: Particle) {
  13. other.position.copyFrom(this.position);
  14. other.direction.copyFrom(this.direction);
  15. other.color.copyFrom(this.color);
  16. other.colorStep.copyFrom(this.colorStep);
  17. other.lifeTime = this.lifeTime;
  18. other.age = this.age;
  19. other.size = this.size;
  20. other.angle = this.angle;
  21. other.angularSpeed = this.angularSpeed;
  22. }
  23. }
  24. }