#ifndef PARTICLE_H #define PARTICLE_H #include "ofMain.h" #define OF_ADDON_USING_OFXVECTORMATH #include "ofAddons.h" class particle { public: ofxVec3f mPos; ofxVec3f mVel; ofxVec3f mFrc; // frc is also know as acceleration (newton says "f=ma") particle(); virtual ~particle(){}; void rebegin (); void resetForce (); void addForce (float x, float y); void addDampin (); void init (float pos_x, float pos_y, float pos_z, float vel_x, float vel_y, float vel_z, float frc_x, float frc_y, float frc_z); void update(); void draw(); float mDamping; float mBrightness; float mFallness; float mTheta; bool mbFade; protected: private: }; #endif // PARTICLE_H