Fix audio listener positionning issue
This commit is contained in:
parent
794908681d
commit
708608177a
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user