35 lines
299 B
C
35 lines
299 B
C
|
//
|
||
|
// attractor.h
|
||
|
// particleSystem
|
||
|
//
|
||
|
|
||
|
#include <stdio.h>
|
||
|
|
||
|
|
||
|
class Attractor {
|
||
|
|
||
|
|
||
|
public:
|
||
|
|
||
|
Attractor();
|
||
|
~Attractor();
|
||
|
|
||
|
|
||
|
float getX();
|
||
|
float getY();
|
||
|
|
||
|
void setX(float x);
|
||
|
void setY(float y);
|
||
|
|
||
|
void setup(float x, float y);
|
||
|
|
||
|
|
||
|
private:
|
||
|
|
||
|
//ofVec2f direction
|
||
|
float x;
|
||
|
float y;
|
||
|
|
||
|
float force;
|
||
|
};
|