Showing the changes to interface/src/Application.cpp (1 of 4 files). Show all
Unified · Split
| @@ -2229,15 +2229,6 @@ void Application::shrinkMirrorView() { · 2228 unmodified lines | |||
| 2229 | 2229 | ||
| 2230 | const float HEAD_SPHERE_RADIUS = 0.1f; | 2230 | const float HEAD_SPHERE_RADIUS = 0.1f; |
| 2231 | 2231 | ||
| 2232 | bool Application::isLookingAtMyAvatar(Avatar* avatar) { | ||
| 2233 | glm::vec3 theirLookAt = avatar->getHead()->getLookAtPosition(); | ||
| 2234 | glm::vec3 myEyePosition = _myAvatar->getHead()->getEyePosition(); | ||
| 2235 | if (pointInSphere(theirLookAt, myEyePosition, HEAD_SPHERE_RADIUS * _myAvatar->getScale())) { | ||
| 2236 | return true; | ||
| 2237 | } | ||
| 2238 | return false; | ||
| 2239 | } | ||
| 2240 | |||
| 2241 | void Application::updateLOD() { | 2232 | void Application::updateLOD() { |
| 2242 | PerformanceTimer perfTimer("LOD"); | 2233 | PerformanceTimer perfTimer("LOD"); |
| 2243 | // adjust it unless we were asked to disable this feature, or if we're currently in throttleRendering mode | 2234 | // adjust it unless we were asked to disable this feature, or if we're currently in throttleRendering mode |