Showing the changes to interface/src/scripting/HMDScriptingInterface.cpp (1 of 1 file). Show all
Unified · Split
| @@ -11,6 +11,8 @@ · 10 unmodified lines | ||
| 11 | 11 | |
| 12 | 12 | #include "HMDScriptingInterface.h" |
| 13 | 13 | |
| 14 | +#include <avatar/AvatarManager.h> | |
| 15 | + | |
| 14 | 16 | HMDScriptingInterface& HMDScriptingInterface::getInstance() { |
| 15 | 17 | static HMDScriptingInterface sharedInstance; |
| 16 | 18 | return sharedInstance; |
| @@ -31,7 +33,7 @@ glm::vec3 HMDScriptingInterface::getHUDLookAtPosition3D() const { · 14 unmodified lines | ||
| 31 | 33 | } |
| 32 | 34 | |
| 33 | 35 | glm::vec2 HMDScriptingInterface::getHUDLookAtPosition2D() const { |
| 34 | − MyAvatar* myAvatar = Application::getInstance()->getAvatar(); | |
| 36 | + MyAvatar* myAvatar = DependencyManager::get<AvatarManager>()->getMyAvatar(); | |
| 35 | 37 | glm::vec3 sphereCenter = myAvatar->getDefaultEyePosition(); |
| 36 | 38 | |
| 37 | 39 | glm::vec3 hudIntersection = getHUDLookAtPosition3D(); |