Browse Source

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

Effekte
Danial Eshete 5 years ago
parent
commit
247746be58
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      src/ofApp.cpp
  2. 1
    1
      src/ofApp.h

+ 1
- 1
src/ofApp.cpp View File

@@ -60,7 +60,7 @@ void ofApp::update() {
//Birth control for new particles
if (birthCount > 0.001) {
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));
}
birthCount = 0;

+ 1
- 1
src/ofApp.h View File

@@ -36,7 +36,7 @@ private:
float xOfCentroid;
float yOfCentroid;

vector<thParticle*> system;
vector<Particle*> system;
vector<Attractor*> attractors;
float birthCount;
double time;

Loading…
Cancel
Save