mirror of
https://github.com/lubosz/overte.git
synced 2025-04-16 21:46:34 +02:00
Merge pull request #13175 from luiscuenca/fixAvatarDisappearing
Fix hips position when flying
This commit is contained in:
commit
8d437892cb
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ static AnimPose computeHipsInSensorFrame(MyAvatar* myAvatar, bool isFlying) {
|
|||
// rotate the hips back to match the flying animation.
|
||||
|
||||
const float TILT_ANGLE = 0.523f;
|
||||
const glm::quat tiltRot = glm::angleAxis(TILT_ANGLE, transformVectorFast(avatarToSensorMat, -Vectors::UNIT_X));
|
||||
const glm::quat tiltRot = glm::angleAxis(TILT_ANGLE, glm::normalize(transformVectorFast(avatarToSensorMat, -Vectors::UNIT_X)));
|
||||
|
||||
glm::vec3 headPos;
|
||||
int headIndex = myAvatar->getJointIndex("Head");
|
||||
|
|
Loading…
Reference in a new issue