Speed up acceleration and blends slightly per Joshua, add kicks to turn anim.

This commit is contained in:
DouglasWilcox 2019-11-15 17:04:51 -08:00
parent d9065affad
commit ddbb8d70ed
4 changed files with 11 additions and 11 deletions

View file

@ -824,7 +824,7 @@
"children": [
],
"data": {
"endFrame": 400,
"endFrame": 200,
"loopFlag": true,
"startFrame": 1,
"timeScale": 1,
@ -837,7 +837,7 @@
"children": [
],
"data": {
"endFrame": 400,
"endFrame": 200,
"loopFlag": true,
"startFrame": 1,
"timeScale": 1,
@ -896,8 +896,8 @@
{
"easingType": "easeInOutQuad",
"id": "seatedTurnLeft",
"interpDuration": 25,
"interpTarget": 25,
"interpDuration": 22,
"interpTarget": 22,
"interpType": "evaluateBoth",
"transitions": [
{
@ -913,8 +913,8 @@
{
"easingType": "easeInOutQuad",
"id": "seatedTurnRight",
"interpDuration": 25,
"interpTarget": 25,
"interpDuration": 22,
"interpTarget": 22,
"interpType": "evaluateBoth",
"transitions": [
{
@ -930,8 +930,8 @@
{
"easingType": "easeInOutQuad",
"id": "seatedTurnRight_to_Idle",
"interpDuration": 25,
"interpTarget": 25,
"interpDuration": 22,
"interpTarget": 22,
"interpType": "evaluateBoth",
"transitions": [
{
@ -951,8 +951,8 @@
{
"easingType": "easeInOutQuad",
"id": "seatedTurnLeft_to_Idle",
"interpDuration": 25,
"interpTarget": 25,
"interpDuration": 22,
"interpTarget": 22,
"interpType": "evaluateBoth",
"transitions": [
{

View file

@ -3516,7 +3516,7 @@ void MyAvatar::updateOrientation(float deltaTime) {
float direction = -getDriveKey(TRANSLATE_X);
float seatedTargetSpeed = direction * _yawSpeed * deltaTime; //deg/renderframe
const float SEATED_ROTATION_ACCEL_SCALE = 3.0;
const float SEATED_ROTATION_ACCEL_SCALE = 3.5;
float blend = deltaTime * SEATED_ROTATION_ACCEL_SCALE;
if (blend > 1.0f) {