From fb284448b5f07edc05e03cb2ecda7c2820f4b2d1 Mon Sep 17 00:00:00 2001 From: Atlante45 Date: Wed, 7 Oct 2015 15:21:35 -0700 Subject: [PATCH] Raise display name not to collide with heads --- interface/src/avatar/Avatar.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/interface/src/avatar/Avatar.cpp b/interface/src/avatar/Avatar.cpp index 0511e5d871..c0636314b5 100644 --- a/interface/src/avatar/Avatar.cpp +++ b/interface/src/avatar/Avatar.cpp @@ -758,6 +758,9 @@ Transform Avatar::calculateDisplayNameTransform(const ViewFrustum& frustum, cons result.setTranslation(textPosition); result.setRotation(orientation); // Always face the screen result.setScale(scale); + // raise by half the scale up so that textPosition be the bottom + result.postTranslate(Vectors::UP / 2.0f); + return result; }