debugging

This commit is contained in:
Seth Alves 2015-10-14 14:13:08 -07:00
parent 5ce39b74fd
commit 21519c6418

View file

@ -2066,12 +2066,14 @@ void Application::idle() {
// XXX // XXX
{ // XXX { // XXX
uint64_t now = usecTimestampNow(); uint64_t now = usecTimestampNow();
if (now - lastReport > 4 * USECS_PER_SECOND) { if (now - lastReport > 6 * USECS_PER_SECOND) {
QSharedPointer<AvatarManager> avatarManager = DependencyManager::get<AvatarManager>(); QSharedPointer<AvatarManager> avatarManager = DependencyManager::get<AvatarManager>();
const AvatarHash& avatarHash = avatarManager->getAvatarHash(); const AvatarHash& avatarHash = avatarManager->getAvatarHash();
glm::vec3 myLeftPalm = getMyAvatar()->getLeftPalmPosition(); qDebug() << "-----------------------";
qDebug() << "my left palm:" << myLeftPalm;
qDebug() << "my left palm:" << getMyAvatar()->getLeftPalmPosition()
<< " my chest:" << getMyAvatar()->getChestPosition();
QHash<QUuid, AvatarSharedPointer>::const_iterator i; QHash<QUuid, AvatarSharedPointer>::const_iterator i;
for (i = avatarHash.begin(); i != avatarHash.end(); ++i) { for (i = avatarHash.begin(); i != avatarHash.end(); ++i) {
@ -2079,8 +2081,8 @@ void Application::idle() {
if (otherAvatar->getSessionUUID() == getMyAvatar()->getSessionUUID()) { if (otherAvatar->getSessionUUID() == getMyAvatar()->getSessionUUID()) {
continue; continue;
} }
glm::vec3 theirLeftPalm = otherAvatar->getLeftPalmPosition(); qDebug() << "their left palm:" << otherAvatar->getLeftPalmPosition()
qDebug() << "their left palm:" << theirLeftPalm; << " their chest:" << otherAvatar->getChestPosition();
}; };
lastReport = now; lastReport = now;