a few debugging changes

This commit is contained in:
Jeffrey Ventrella 2013-04-17 17:48:08 -07:00
parent d7f37e5972
commit aba20c6afd
2 changed files with 4 additions and 6 deletions

View file

@ -922,7 +922,7 @@ void Head::updateSkeleton() {
_avatar.orientation.yaw( _bodyYaw );
//test! - make sure this does what expected: st rotation to be identity PLUS _bodyYaw
_rotation = glm::angleAxis( _bodyYaw, _avatar.orientation.up );
//_rotation = glm::angleAxis( _bodyYaw, _avatar.orientation.up );
//glm::quat yaw_rotation = glm::angleAxis( _bodyYaw, _avatar.orientation.up );
@ -940,7 +940,7 @@ void Head::updateSkeleton() {
_bone[b].position = _bone[ _bone[b].parent ].position;
}
///TEST! - get this working and then add a comment JJV
///TEST! - get this working and then add a comment; JJV
if ( ! _isMine ) {
_bone[ AVATAR_BONE_RIGHT_HAND ].position = _handPosition;
}
@ -1051,7 +1051,7 @@ void Head::updateHandMovement() {
+ _avatar.orientation.getFront() * -_movedHandOffset.y;
_bone[ AVATAR_BONE_RIGHT_HAND ].position += transformedHandMovement;
//if holding hands, add a pull to the hand...
if ( _usingSprings ) {
if ( _closestOtherAvatar != -1 ) {

View file

@ -63,7 +63,7 @@ int AvatarData::getBroadcastData(unsigned char* destinationBuffer) {
memcpy(destinationBuffer, &_handPosition, sizeof(float) * 3);
destinationBuffer += sizeof(float) * 3;
//std::cout << _handPosition.x << ", " << _handPosition.y << ", " << _handPosition.z << "\n";
std::cout << _handPosition.x << ", " << _handPosition.y << ", " << _handPosition.z << "\n";
return destinationBuffer - bufferStart;
}
@ -80,8 +80,6 @@ void AvatarData::parseData(unsigned char* sourceBuffer, int numBytes) {
sourceBuffer += unpackFloatAngleFromTwoByte((uint16_t *)sourceBuffer, &_bodyPitch);
sourceBuffer += unpackFloatAngleFromTwoByte((uint16_t *)sourceBuffer, &_bodyRoll);
printf( "_bodyYaw = %f\n", _bodyYaw );
memcpy(&_handPosition, sourceBuffer, sizeof(float) * 3);
sourceBuffer += sizeof(float) * 3;