Sets velocity to 0, does not make use of doppler effect atm

This commit is contained in:
stiffly
2016-03-01 14:47:57 +01:00
parent 2c56b03b2b
commit d3ffb9768b
5 changed files with 34 additions and 42 deletions
+1 -1
View File
@@ -122,7 +122,7 @@ void SoundManager::updateEmitters(double dt)
// Calculate velocity
glm::vec3 velocity = glm::vec3(nextPos - previousPos) / (float)dt;
setSourcePos(it->second->ALsource, nextPos);
setSourceVel(it->second->ALsource, velocity);
setSourceVel(it->second->ALsource, glm::vec3(0));
auto emitter = m_World->GetComponent(it->first, "SoundEmitter");
setSoundProperties(it->second, &emitter);