mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 20:35:04 +02:00
Merge pull request #153 from birarda/audio
correct the sign of the absolute head yaw
This commit is contained in:
commit
a987d95af0
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ int audioCallback (const void *inputBuffer,
|
||||||
*(currentPacketPtr++) = 255;
|
*(currentPacketPtr++) = 255;
|
||||||
|
|
||||||
// memcpy the corrected render yaw
|
// memcpy the corrected render yaw
|
||||||
float correctedYaw = fmodf(data->linkedAvatar->getAbsoluteHeadYaw(), 360);
|
float correctedYaw = fmodf(-1 * data->linkedAvatar->getAbsoluteHeadYaw(), 360);
|
||||||
|
|
||||||
if (correctedYaw > 180) {
|
if (correctedYaw > 180) {
|
||||||
correctedYaw -= 360;
|
correctedYaw -= 360;
|
||||||
|
|
Loading…
Reference in a new issue