mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 16:10:11 +02:00
correct the sign of the absolute head yaw sent to avatar mixer
This commit is contained in:
parent
7c855464e1
commit
ded5da47ff
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