mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 12:28:02 +02:00
commit
40efa0f0b8
2 changed files with 3 additions and 7 deletions
|
@ -62,13 +62,9 @@ int AvatarData::getBroadcastData(unsigned char* destinationBuffer) {
|
||||||
destinationBuffer += packFloatAngleToTwoByte(destinationBuffer, _bodyPitch);
|
destinationBuffer += packFloatAngleToTwoByte(destinationBuffer, _bodyPitch);
|
||||||
destinationBuffer += packFloatAngleToTwoByte(destinationBuffer, _bodyRoll);
|
destinationBuffer += packFloatAngleToTwoByte(destinationBuffer, _bodyRoll);
|
||||||
|
|
||||||
//printLog( "_bodyYaw = %f", _bodyYaw );
|
|
||||||
|
|
||||||
memcpy(destinationBuffer, &_handPosition, sizeof(float) * 3);
|
memcpy(destinationBuffer, &_handPosition, sizeof(float) * 3);
|
||||||
destinationBuffer += sizeof(float) * 3;
|
destinationBuffer += sizeof(float) * 3;
|
||||||
|
|
||||||
printLog("%f, %f, %f\n", _handPosition.x, _handPosition.y, _handPosition.z);
|
|
||||||
|
|
||||||
return destinationBuffer - bufferStart;
|
return destinationBuffer - bufferStart;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -216,9 +216,9 @@ void Agent::printLog(Agent const& agent) {
|
||||||
sockaddr_in *agentPublicSocket = (sockaddr_in *) agent.publicSocket;
|
sockaddr_in *agentPublicSocket = (sockaddr_in *) agent.publicSocket;
|
||||||
sockaddr_in *agentLocalSocket = (sockaddr_in *) agent.localSocket;
|
sockaddr_in *agentLocalSocket = (sockaddr_in *) agent.localSocket;
|
||||||
|
|
||||||
::printLog("T: %s (%c) PA: %8x:%d LA: %8x:%d\n", agent.getTypeName(), agent.type,
|
::printLog("T: %s (%c) PA: %s:%d LA: %s:%d\n", agent.getTypeName(), agent.type,
|
||||||
inet_ntoa(agentPublicSocket->sin_addr), ntohs(agentPublicSocket->sin_port),
|
inet_ntoa(agentPublicSocket->sin_addr), ntohs(agentPublicSocket->sin_port),
|
||||||
inet_ntoa(agentLocalSocket->sin_addr), ntohs(agentLocalSocket->sin_port));
|
inet_ntoa(agentLocalSocket->sin_addr), ntohs(agentLocalSocket->sin_port));
|
||||||
}
|
}
|
||||||
|
|
||||||
std::ostream& operator<<(std::ostream& os, const Agent* agent) {
|
std::ostream& operator<<(std::ostream& os, const Agent* agent) {
|
||||||
|
|
Loading…
Reference in a new issue