mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-08 06:32:35 +02:00
including Philips hand position transmission code
This commit is contained in:
parent
5595bb8cf6
commit
5aeb307be2
2 changed files with 7 additions and 3 deletions
|
@ -132,7 +132,6 @@ Head::Head(bool isMine) {
|
|||
DEBUG_otherAvatarListPosition[ 4 ] = glm::vec3( -2.0, 0.3, -2.0 );
|
||||
}
|
||||
|
||||
|
||||
Head::Head(const Head &otherHead) {
|
||||
initializeAvatar();
|
||||
|
||||
|
@ -531,7 +530,9 @@ void Head::simulate(float deltaTime) {
|
|||
|
||||
|
||||
|
||||
void Head::render(int faceToFace, int isMine) {
|
||||
|
||||
|
||||
void Head::render(int faceToFace) {
|
||||
|
||||
//---------------------------------------------------
|
||||
// show avatar position
|
||||
|
|
|
@ -57,7 +57,10 @@ int AvatarData::getBroadcastData(unsigned char* destinationBuffer) {
|
|||
destinationBuffer += packFloatAngleToTwoByte(destinationBuffer, _bodyPitch);
|
||||
destinationBuffer += packFloatAngleToTwoByte(destinationBuffer, _bodyRoll);
|
||||
|
||||
//printf( "_bodyYaw = %f\n", _bodyYaw );
|
||||
memcpy(destinationBuffer, &_handPosition, sizeof(float) * 3);
|
||||
destinationBuffer += sizeof(float) * 3;
|
||||
|
||||
//std::cout << _handPosition.x << ", " << _handPosition.y << ", " << _handPosition.z << "\n";
|
||||
|
||||
return destinationBuffer - bufferStart;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue