mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 04:03:59 +02:00
correct direction of angle of delivery
This commit is contained in:
parent
fa9b897025
commit
7f486c351f
1 changed files with 2 additions and 2 deletions
|
@ -177,9 +177,9 @@ int main(int argc, const char* argv[]) {
|
|||
} else {
|
||||
// calculate the angle delivery
|
||||
glm::vec3 rotatedListenerPosition = glm::inverse(otherAgentBuffer->getOrientation())
|
||||
* relativePosition;
|
||||
* relativePosition;
|
||||
|
||||
float angleOfDelivery = glm::angle(glm::vec3(0.0f, 0.0f, 1.0f),
|
||||
float angleOfDelivery = glm::angle(glm::vec3(0.0f, 0.0f, -1.0f),
|
||||
glm::normalize(rotatedListenerPosition));
|
||||
|
||||
const float MAX_OFF_AXIS_ATTENUATION = 0.2f;
|
||||
|
|
Loading…
Reference in a new issue