mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 18:21:16 +02:00
fix the flipped sign for agentHead translate
This commit is contained in:
parent
8d4061dd72
commit
484ab53764
1 changed files with 1 additions and 1 deletions
|
@ -826,7 +826,7 @@ void display(void)
|
||||||
Head *agentHead = (Head *)agent->getLinkedData();
|
Head *agentHead = (Head *)agent->getLinkedData();
|
||||||
glPushMatrix();
|
glPushMatrix();
|
||||||
glm::vec3 pos = agentHead->getBodyPosition();
|
glm::vec3 pos = agentHead->getBodyPosition();
|
||||||
glTranslatef(-pos.x, -pos.y, -pos.z);
|
glTranslatef(pos.x, pos.y, pos.z);
|
||||||
agentHead->render(0);
|
agentHead->render(0);
|
||||||
glPopMatrix();
|
glPopMatrix();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue