Showing the changes to interface/src/ParticleSystem.cpp (1 of 3 files). Show all
Unified · Split
| @@ -210,10 +210,6 @@ void ParticleSystem::updateParticle(int p, float deltaTime) { · 209 unmodified lines | |||
| 210 | } | 210 | } |
| 211 | 211 | ||
| 212 | // apply tornado force | 212 | // apply tornado force |
| 213 | |||
| 214 | |||
| 215 | //glm::vec3 emitterUp = myEmitter.rotation * IDENTITY_UP; | ||
| 216 | |||
| 217 | glm::vec3 tornadoDirection = glm::cross(vectorToHome, myEmitter.direction); | 213 | glm::vec3 tornadoDirection = glm::cross(vectorToHome, myEmitter.direction); |
| 218 | _particle[p].velocity += tornadoDirection * myEmitter.particleAttributes[lifeStage].tornadoForce * deltaTime; | 214 | _particle[p].velocity += tornadoDirection * myEmitter.particleAttributes[lifeStage].tornadoForce * deltaTime; |
| 219 | 215 | ||