From c6661e8b8e869f0d8a6bf44a01615e5a07e97261 Mon Sep 17 00:00:00 2001 From: Andrzej Kapolka Date: Thu, 25 Apr 2013 17:48:47 -0700 Subject: [PATCH] Lowered the chat message height and put it in a variable. --- interface/src/Avatar.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/interface/src/Avatar.cpp b/interface/src/Avatar.cpp index 093e51fdff..305555577b 100644 --- a/interface/src/Avatar.cpp +++ b/interface/src/Avatar.cpp @@ -38,6 +38,7 @@ bool usingBigSphereCollisionTest = true; char iris_texture_file[] = "resources/images/green_eye.png"; float chatMessageScale = 0.00025; +float chatMessageHeight = 0.4; vector iris_texture; unsigned int iris_texture_width = 512; @@ -648,7 +649,7 @@ void Avatar::render(bool lookingInMirror) { float modelview[16]; glGetFloatv(GL_MODELVIEW_MATRIX, modelview); - glTranslatef(_position.x, _position.y + 0.7, _position.z); + glTranslatef(_position.x, _position.y + chatMessageHeight, _position.z); glRotatef(atan2(-modelview[2], -modelview[10]) * 180 / PI, 0, 1, 0); glTranslatef(width * 0.5, 0, 0);