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 687B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #pragma once
  2. #include "ofMain.h"
  3. #include "attractor.h"
  4. class thParticle
  5. {
  6. public:
  7. thParticle();
  8. ~thParticle();
  9. void setup(ofVec2f position);
  10. void update(float deltaT, vector<Attractor*>* attractors);
  11. // void update(float deltaT, ofVec2f attractor);
  12. //Partikel wird komplett upgedated (Bewegung, Farbe, etc...)
  13. //deltaT Zeitintervall seit letztem Update
  14. void draw(); //Partikel anzeigen
  15. float getAgeNorm();
  16. float getMaxLife();
  17. ofImage tex;
  18. private:
  19. int counterOfActiveAttractors;
  20. ofVec2f vel;
  21. ofVec2f position;
  22. float maxLife;
  23. float age;
  24. float size;
  25. float mass;
  26. int blobCounterInParticle;
  27. ofColor color;
  28. };