mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
MyAvatar: prevent roll and pitch in avatar via snapshot url.
This commit is contained in:
parent
8d2ab50616
commit
b921ac7757
1 changed files with 1 additions and 1 deletions
|
@ -1787,7 +1787,7 @@ void MyAvatar::goToLocation(const glm::vec3& newPosition,
|
|||
<< newOrientation.x << ", " << newOrientation.y << ", " << newOrientation.z << ", " << newOrientation.w;
|
||||
|
||||
// orient the user to face the target
|
||||
glm::quat quatOrientation = newOrientation;
|
||||
glm::quat quatOrientation = cancelOutRollAndPitch(newOrientation);
|
||||
|
||||
if (shouldFaceLocation) {
|
||||
quatOrientation = newOrientation * glm::angleAxis(PI, glm::vec3(0.0f, 1.0f, 0.0f));
|
||||
|
|
Loading…
Reference in a new issue