mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 08:23:04 +02:00
debugging
This commit is contained in:
parent
5ce39b74fd
commit
21519c6418
1 changed files with 7 additions and 5 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue