the proper way to temporarily disable hand render

This commit is contained in:
Stephen Birarda 2013-02-22 16:44:29 -08:00
parent a20a162502
commit 04186664a3
2 changed files with 2 additions and 8 deletions

View file

@ -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()
{

View file

@ -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)