mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:44:01 +02:00
MyAvatar: bug fix for avatar leaning
This commit is contained in:
parent
f82e5e2cd6
commit
8f27424de7
1 changed files with 1 additions and 1 deletions
|
@ -1873,7 +1873,7 @@ bool MyAvatar::FollowHelper::shouldActivate(const MyAvatar& myAvatar, const glm:
|
|||
const float CYLINDER_RADIUS = 0.15f;
|
||||
|
||||
glm::vec3 offset = extractTranslation(desiredBodyMatrix) - extractTranslation(currentBodyMatrix);
|
||||
glm::vec3 radialOffset(offset.x, 0.0f, offset.y);
|
||||
glm::vec3 radialOffset(offset.x, 0.0f, offset.z);
|
||||
float radialDistance = glm::length(radialOffset);
|
||||
|
||||
return (offset.y > CYLINDER_TOP) || (offset.y < CYLINDER_BOTTOM) || (radialDistance > CYLINDER_RADIUS);
|
||||
|
|
Loading…
Reference in a new issue