including Philips hand position transmission code

This commit is contained in:
Jeffrey Ventrella 2013-04-17 15:36:40 -07:00
parent 5595bb8cf6
commit 5aeb307be2
2 changed files with 7 additions and 3 deletions

View file

@ -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

View file

@ -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;
}