mirror of
https://github.com/overte-org/overte.git
synced 2025-04-18 14:57:00 +02:00
the proper way to temporarily disable hand render
This commit is contained in:
parent
a20a162502
commit
04186664a3
2 changed files with 2 additions and 8 deletions
|
@ -26,13 +26,7 @@ Hand::Hand(glm::vec3 initcolor)
|
|||
|
||||
void Hand::render()
|
||||
{
|
||||
glPushMatrix();
|
||||
glTranslatef(position.x, position.y, position.z);
|
||||
glColor3f(color.x, color.y, color.z);
|
||||
glScalef(scale.x, scale.y, scale.z);
|
||||
glutSolidSphere(1.5, 20, 20);
|
||||
glPopMatrix();
|
||||
}
|
||||
g}
|
||||
|
||||
void Hand::reset()
|
||||
{
|
||||
|
|
|
@ -361,7 +361,7 @@ void Head::parseData(void *data, int size) {
|
|||
&position.x, &position.y, &position.z,
|
||||
&loudness, &averageLoudness,
|
||||
&handPos.x, &handPos.y, &handPos.z);
|
||||
// if (glm::length(handPos) > 0.0) hand->setPos(handPos);
|
||||
if (glm::length(handPos) > 0.0) hand->setPos(handPos);
|
||||
}
|
||||
|
||||
void Head::SetNewHeadTarget(float pitch, float yaw)
|
||||
|
|
Loading…
Reference in a new issue