Quelcode des Partikelsystems Boden
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

particle.h 478B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #pragma once
  2. #include "ofMain.h"
  3. #include "attractor.h"
  4. #include "line.h"
  5. class Particle
  6. {
  7. public:
  8. Particle();
  9. ~Particle();
  10. void setup(ofVec2f position);
  11. void update(float deltaT, vector<Attractor*>* attractors);
  12. void draw();
  13. float getAgeNorm();
  14. float getMaxLife();
  15. private:
  16. int counterOfActiveAttractors;
  17. ofVec2f vel;
  18. ofVec2f position;
  19. float maxLife;
  20. float age;
  21. float size;
  22. float mass;
  23. int blobCounterInParticle;
  24. ofColor color;
  25. ofImage tex;
  26. };