24 lines · 769 B · C++
RawDownload
////  Created by Sabrina Shanman 8/14/2018//  Copyright 2018 High Fidelity, Inc.////  Distributed under the Apache License, Version 2.0.//  See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html// #include "MyAvatarHeadTransformNode.h" #include "DependencyManager.h"#include "AvatarManager.h"#include "MyAvatar.h" Transform MyAvatarHeadTransformNode::getTransform() {    auto myAvatar = DependencyManager::get<AvatarManager>()->getMyAvatar();     glm::vec3 pos = myAvatar->getHeadPosition();    glm::vec3 scale = glm::vec3(myAvatar->scaleForChildren());    glm::quat headOri = myAvatar->getHeadOrientation();    glm::quat ori = headOri * glm::angleAxis(-PI / 2.0f, Vectors::RIGHT);     return Transform(ori, scale, pos);}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t