mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 02:56:50 +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()
|
void Hand::render()
|
||||||
{
|
{
|
||||||
glPushMatrix();
|
g}
|
||||||
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();
|
|
||||||
}
|
|
||||||
|
|
||||||
void Hand::reset()
|
void Hand::reset()
|
||||||
{
|
{
|
||||||
|
|
|
@ -361,7 +361,7 @@ void Head::parseData(void *data, int size) {
|
||||||
&position.x, &position.y, &position.z,
|
&position.x, &position.y, &position.z,
|
||||||
&loudness, &averageLoudness,
|
&loudness, &averageLoudness,
|
||||||
&handPos.x, &handPos.y, &handPos.z);
|
&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)
|
void Head::SetNewHeadTarget(float pitch, float yaw)
|
||||||
|
|
Loading…
Reference in a new issue