Fix audio listener positionning issue

This commit is contained in:
Marianne Gagnon 2015-11-16 19:13:28 -05:00
parent 794908681d
commit 708608177a

View File

@ -526,9 +526,9 @@ void Camera::update(float dt)
{ {
if (race_manager->getNumLocalPlayers() < 2) if (race_manager->getNumLocalPlayers() < 2)
{ {
Vec3 pos(m_camera->getPosition()); Vec3 heading(sin(m_kart->getHeading()), 0.0f, cos(m_kart->getHeading()));
SFXManager::get()->positionListener(m_kart->getXYZ(), SFXManager::get()->positionListener(m_kart->getXYZ(),
m_kart->getXYZ() + Vec3(0, 0, 1), heading,
Vec3(0, 1, 0)); Vec3(0, 1, 0));
} }