mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
Raise display name not to collide with heads
This commit is contained in:
parent
efeeaa7ea7
commit
fb284448b5
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue