Projektordner für das Team Deutsches Museum (FORUM).
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.hpp 796B

4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // particle.hpp
  3. //
  4. // Created by Sebastian Holzki on 16.04.19.
  5. //
  6. #pragma once
  7. #include <stdio.h>
  8. #include "ofMain.h"
  9. class Particle {
  10. public:
  11. Particle();
  12. ~Particle();
  13. void setup(ofVec2f position);
  14. void update(float deltaT);
  15. void draw();
  16. float getMaxLife();
  17. float getAge();
  18. float getAgeNorm();
  19. void mapParticle();
  20. bool borderCollission();
  21. private:
  22. ofVec2f velocity;
  23. ofVec2f position;
  24. float maxLife;
  25. float age;
  26. float size;
  27. float mass;
  28. ofColor color;
  29. int stele;
  30. //on which "stele" is the particle? --> will affect the movement (mapping), when it reaches borders of its "stele" !
  31. //if border 1/2/3/4 (<,>,v,^), then map particle
  32. };