added direction to listener for sound spatialization
This commit is contained in:
parent
73010a52e1
commit
aaee7d6762
@ -300,6 +300,8 @@ void PlayerCharacterNode::update()
|
|||||||
m_playerLightNode->update();
|
m_playerLightNode->update();
|
||||||
glm::vec3 p = this->getEyePosition();
|
glm::vec3 p = this->getEyePosition();
|
||||||
sf::Listener::setPosition(p.x,p.y,p.z);
|
sf::Listener::setPosition(p.x,p.y,p.z);
|
||||||
|
glm::vec3 d = getDirection();
|
||||||
|
sf::Listener::setDirection(d.x,d.y,d.z);
|
||||||
}
|
}
|
||||||
|
|
||||||
void PlayerCharacterNode::toggleNoClip()
|
void PlayerCharacterNode::toggleNoClip()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user