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.

attractor.h 299B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // attractor.h
  3. // particleSystem
  4. //
  5. #include <stdio.h>
  6. class Attractor {
  7. public:
  8. Attractor();
  9. ~Attractor();
  10. float getX();
  11. float getY();
  12. void setX(float x);
  13. void setY(float y);
  14. void setup(float x, float y);
  15. private:
  16. //ofVec2f direction
  17. float x;
  18. float y;
  19. float force;
  20. };