Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -1738,9 +1738,7 @@ bool Application::isLookingAtOtherAvatar(glm::vec3 &mouseRayOrigin, glm::vec3 &m · 1737 unmodified lines | |||
| 1738 | if (node->getLinkedData() != NULL && node->getType() == NODE_TYPE_AGENT) { | 1738 | if (node->getLinkedData() != NULL && node->getType() == NODE_TYPE_AGENT) { |
| 1739 | Avatar *avatar = (Avatar *)node->getLinkedData(); | 1739 | Avatar *avatar = (Avatar *)node->getLinkedData(); |
| 1740 | glm::vec3 headPosition = avatar->getHead().getPosition(); | 1740 | glm::vec3 headPosition = avatar->getHead().getPosition(); |
| 1741 | printf("x: %f y: %f z: %f \n", mouseRayOrigin.x, mouseRayOrigin.y, mouseRayOrigin.z); | ||
| 1742 | if (rayIntersectsSphere(mouseRayOrigin, mouseRayDirection, headPosition, 0.07)) { | 1741 | if (rayIntersectsSphere(mouseRayOrigin, mouseRayDirection, headPosition, 0.07)) { |
| 1743 | printf("lalala\n"); | ||
| 1744 | eyePosition = avatar->getHead().getEyeLevelPosition(); | 1742 | eyePosition = avatar->getHead().getEyeLevelPosition(); |
| 1745 | return true; | 1743 | return true; |
| 1746 | } | 1744 | } |