changed from thParticle to Particle because there's no thParticle class

This commit is contained in:
Danial Eshete 2019-05-23 15:52:23 +02:00
parent fd32d1984b
commit 247746be58
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ void ofApp::update() {
//Birth control for new particles //Birth control for new particles
if (birthCount > 0.001) { if (birthCount > 0.001) {
for (int i = 0;i < 4;i++) { for (int i = 0;i < 4;i++) {
system.push_back(new thParticle); system.push_back(new Particle);
system.back()->setup(ofVec2f(ofGetWidth()*.5, ofGetHeight()*.5)); system.back()->setup(ofVec2f(ofGetWidth()*.5, ofGetHeight()*.5));
} }
birthCount = 0; birthCount = 0;

View File

@ -36,7 +36,7 @@ private:
float xOfCentroid; float xOfCentroid;
float yOfCentroid; float yOfCentroid;
vector<thParticle*> system; vector<Particle*> system;
vector<Attractor*> attractors; vector<Attractor*> attractors;
float birthCount; float birthCount;
double time; double time;