mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-05 06:20:03 +02:00
revert unintended change to "gravity" term in IK
This commit is contained in:
parent
bdcc68ce36
commit
0e5b357362
1 changed files with 1 additions and 1 deletions
|
@ -671,7 +671,7 @@ void Rig::inverseKinematics(int endIndex, glm::vec3 targetPosition, const glm::q
|
|||
|
||||
float gravityAngle = glm::angle(gravityDelta);
|
||||
const float MIN_GRAVITY_ANGLE = 0.5f;
|
||||
float mixFactor = 0.5f;
|
||||
float mixFactor = 0.1f;
|
||||
if (gravityAngle < MIN_GRAVITY_ANGLE) {
|
||||
// the final rotation is a mix of the two
|
||||
mixFactor = 0.5f * gravityAngle / MIN_GRAVITY_ANGLE;
|
||||
|
|
Loading…
Reference in a new issue