mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 13:17:59 +02:00
changed HMDScriptingInterface MyAvatar to new way of retrieving this object
This commit is contained in:
parent
e3ca1efe6b
commit
0e66305456
1 changed files with 3 additions and 1 deletions
|
@ -11,6 +11,8 @@
|
|||
|
||||
#include "HMDScriptingInterface.h"
|
||||
|
||||
#include <avatar/AvatarManager.h>
|
||||
|
||||
HMDScriptingInterface& HMDScriptingInterface::getInstance() {
|
||||
static HMDScriptingInterface sharedInstance;
|
||||
return sharedInstance;
|
||||
|
@ -31,7 +33,7 @@ glm::vec3 HMDScriptingInterface::getHUDLookAtPosition3D() const {
|
|||
}
|
||||
|
||||
glm::vec2 HMDScriptingInterface::getHUDLookAtPosition2D() const {
|
||||
MyAvatar* myAvatar = Application::getInstance()->getAvatar();
|
||||
MyAvatar* myAvatar = DependencyManager::get<AvatarManager>()->getMyAvatar();
|
||||
glm::vec3 sphereCenter = myAvatar->getDefaultEyePosition();
|
||||
|
||||
glm::vec3 hudIntersection = getHUDLookAtPosition3D();
|
||||
|
|
Loading…
Reference in a new issue