Raise display name not to collide with heads

This commit is contained in:
Atlante45 2015-10-07 15:21:35 -07:00
parent efeeaa7ea7
commit fb284448b5

View file

@ -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;
}