mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 14:08:51 +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 );
|
DEBUG_otherAvatarListPosition[ 4 ] = glm::vec3( -2.0, 0.3, -2.0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Head::Head(const Head &otherHead) {
|
Head::Head(const Head &otherHead) {
|
||||||
initializeAvatar();
|
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
|
// show avatar position
|
||||||
|
|
|
@ -57,7 +57,10 @@ int AvatarData::getBroadcastData(unsigned char* destinationBuffer) {
|
||||||
destinationBuffer += packFloatAngleToTwoByte(destinationBuffer, _bodyPitch);
|
destinationBuffer += packFloatAngleToTwoByte(destinationBuffer, _bodyPitch);
|
||||||
destinationBuffer += packFloatAngleToTwoByte(destinationBuffer, _bodyRoll);
|
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;
|
return destinationBuffer - bufferStart;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue