mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 05:57:29 +02:00
Merge branch 'master' of https://github.com/worklist/hifi
This commit is contained in:
commit
f39fade4c7
2 changed files with 1 additions and 4 deletions
|
@ -143,8 +143,7 @@ void Avatar::updateHeadFromGyros(float deltaTime, SerialInterface* serialInterfa
|
||||||
// Update head lean distance based on accelerometer data
|
// Update head lean distance based on accelerometer data
|
||||||
glm::vec3 headRotationRates(_head.getPitch(), _head.getYaw(), _head.getRoll());
|
glm::vec3 headRotationRates(_head.getPitch(), _head.getYaw(), _head.getRoll());
|
||||||
|
|
||||||
|
glm::vec3 leaning = (serialInterface->getLastAcceleration() - serialInterface->getGravity())
|
||||||
glm::vec3 leaning = (serialInterface->getLastAcceleration() - serialInterface->getGravity())
|
|
||||||
* LEAN_SENSITIVITY
|
* LEAN_SENSITIVITY
|
||||||
* (1.f - fminf(glm::length(headRotationRates), HEAD_RATE_MAX) / HEAD_RATE_MAX);
|
* (1.f - fminf(glm::length(headRotationRates), HEAD_RATE_MAX) / HEAD_RATE_MAX);
|
||||||
leaning.y = 0.f;
|
leaning.y = 0.f;
|
||||||
|
|
|
@ -210,8 +210,6 @@ void Head::renderEars() {
|
||||||
glPopMatrix();
|
glPopMatrix();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void Head::renderMouth() {
|
void Head::renderMouth() {
|
||||||
|
|
||||||
float s = sqrt(_averageLoudness);
|
float s = sqrt(_averageLoudness);
|
||||||
|
|
Loading…
Reference in a new issue