mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 01:03:57 +02:00
Restore the amplification; blink faster.
This commit is contained in:
parent
a1d0f255cc
commit
4ecb4ab3c6
2 changed files with 4 additions and 4 deletions
|
@ -286,9 +286,9 @@ void Avatar::reset() {
|
|||
|
||||
// Update avatar head rotation with sensor data
|
||||
void Avatar::updateHeadFromGyrosAndOrWebcam() {
|
||||
const float AMPLIFY_PITCH = 1.f;
|
||||
const float AMPLIFY_YAW = 1.f;
|
||||
const float AMPLIFY_ROLL = 1.f;
|
||||
const float AMPLIFY_PITCH = 2.f;
|
||||
const float AMPLIFY_YAW = 2.f;
|
||||
const float AMPLIFY_ROLL = 2.f;
|
||||
|
||||
SerialInterface* gyros = Application::getInstance()->getSerialHeadSensor();
|
||||
Webcam* webcam = Application::getInstance()->getWebcam();
|
||||
|
|
|
@ -179,7 +179,7 @@ void Head::simulate(float deltaTime, bool isMine) {
|
|||
_browAudioLift *= 0.7f;
|
||||
|
||||
// update eyelid blinking
|
||||
const float BLINK_SPEED = 5.0f;
|
||||
const float BLINK_SPEED = 10.0f;
|
||||
const float FULLY_OPEN = 0.0f;
|
||||
const float FULLY_CLOSED = 1.0f;
|
||||
if (_leftEyeBlinkVelocity == 0.0f && _rightEyeBlinkVelocity == 0.0f) {
|
||||
|
|
Loading…
Reference in a new issue