mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 22:10:25 +02:00
thingy
This commit is contained in:
parent
14b943f1f7
commit
14d47d87d8
1 changed files with 2 additions and 0 deletions
|
@ -522,10 +522,12 @@ void Avatar::updateHandMovementAndTouching(float deltaTime) {
|
||||||
void Avatar::updateHead(float deltaTime) {
|
void Avatar::updateHead(float deltaTime) {
|
||||||
|
|
||||||
// hold on to this - used for testing....
|
// hold on to this - used for testing....
|
||||||
|
/*
|
||||||
static float test = 0.0f;
|
static float test = 0.0f;
|
||||||
test += deltaTime;
|
test += deltaTime;
|
||||||
_head.leanForward = 0.02 * sin( test * 0.2f );
|
_head.leanForward = 0.02 * sin( test * 0.2f );
|
||||||
_head.leanSideways = 0.02 * sin( test * 0.3f );
|
_head.leanSideways = 0.02 * sin( test * 0.3f );
|
||||||
|
*/
|
||||||
|
|
||||||
//apply the head lean values to the springy position...
|
//apply the head lean values to the springy position...
|
||||||
if (fabs(_head.leanSideways + _head.leanForward) > 0.0f)
|
if (fabs(_head.leanSideways + _head.leanForward) > 0.0f)
|
||||||
|
|
Loading…
Reference in a new issue