History

raised home position

Jeffrey Ventrella committed 13 years ago

Commit 171c10d1 parent 8ae10a61 file · +2 −2Browse files

Showing the changes to interface/src/ParticleSystem.cpp (1 of 1 file). Show all

Unified · Split

interface/src/ParticleSystem.cpp+2−2
@@ -25,7 +25,7 @@ ParticleSystem::ParticleSystem() { · 24 unmodified lines
2525 _neighborAttraction = 0.02f;
2626 _neighborRepulsion = 0.9f;
2727 _tornadoAxis = glm::normalize(glm::vec3(0.1f, 1.0f, 0.1f));
28− _home = glm::vec3(5.0f, 0.5f, 5.0f);
28+ _home = glm::vec3(5.0f, 1.0f, 5.0f);
2929
3030 _TEST_bigSphereRadius = 0.5f;
3131 _TEST_bigSpherePosition = glm::vec3( 5.0f, _TEST_bigSphereRadius, 5.0f);
@@ -129,7 +129,7 @@ void ParticleSystem::simulate(float deltaTime) { · 97 unmodified lines
129129 if (distanceToSphereCenter > 0.0f){
130130 glm::vec3 directionToSphereCenter = vectorToSphereCenter / distanceToSphereCenter;
131131 _particle[p].position = _TEST_bigSpherePosition - directionToSphereCenter * combinedRadius;
132− _particle[p].velocity.y += 0.005f;
132+ //_particle[p].velocity.y += 0.005f;
133133 }
134134 }
135135 }