Merge pull request #16316 from luiscuenca/fixForwardEyeLookAt

DEV-2285: Fix eye look at forward vector
This commit is contained in:
Shannon Romano 2019-10-09 09:13:02 -07:00 committed by GitHub
commit b3d974504a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2175,7 +2175,7 @@ static float lookAtCostFunction(const glm::vec3& myForward, const glm::vec3& myP
}
void MyAvatar::computeMyLookAtTarget(const AvatarHash& hash) {
glm::vec3 myForward = getHead()->getFinalOrientationInWorldFrame() * IDENTITY_FORWARD;
glm::vec3 myForward = _lookAtYaw * IDENTITY_FORWARD;
glm::vec3 myPosition = getHead()->getEyePosition();
CameraMode mode = qApp->getCamera().getMode();
if (mode == CAMERA_MODE_FIRST_PERSON) {