mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 22:55:06 +02:00
type squishes in AvatarData
This commit is contained in:
parent
570dfba934
commit
28bab24e70
1 changed files with 9 additions and 10 deletions
|
@ -80,10 +80,9 @@ int AvatarData::getBroadcastData(unsigned char* destinationBuffer) {
|
|||
destinationBuffer += packFloatAngleToTwoByte(destinationBuffer, _bodyRoll);
|
||||
|
||||
// Head rotation (NOTE: This needs to become a quaternion to save two bytes)
|
||||
printf("Current values are %f,%f,%f\n", _headData->getYaw(), _headData->getPitch(), _headData->getRoll());
|
||||
destinationBuffer += packFloatAngleToTwoByte(destinationBuffer, _headData->getYaw());
|
||||
destinationBuffer += packFloatAngleToTwoByte(destinationBuffer, _headData->getPitch());
|
||||
destinationBuffer += packFloatAngleToTwoByte(destinationBuffer, _headData->getRoll());
|
||||
destinationBuffer += packFloatAngleToTwoByte(destinationBuffer, _headData->_yaw);
|
||||
destinationBuffer += packFloatAngleToTwoByte(destinationBuffer, _headData->_pitch);
|
||||
destinationBuffer += packFloatAngleToTwoByte(destinationBuffer, _headData->_roll);
|
||||
|
||||
// Head lean X,Z (head lateral and fwd/back motion relative to torso)
|
||||
memcpy(destinationBuffer, &_headLeanSideways, sizeof(float));
|
||||
|
|
Loading…
Reference in a new issue