mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 08:49:05 +02:00
Bug fix for feet poleVector smoothing.
This bug was introduced when I renamed the variable from poleVector to sensorPoleVector for readablity.
This commit is contained in:
parent
fff4348a0f
commit
3a88582f42
1 changed files with 2 additions and 2 deletions
|
@ -1364,7 +1364,7 @@ void Rig::updateFeet(bool leftFootEnabled, bool rightFootEnabled, const AnimPose
|
||||||
int kneeJointIndex = _animSkeleton->nameToJointIndex("LeftLeg");
|
int kneeJointIndex = _animSkeleton->nameToJointIndex("LeftLeg");
|
||||||
int upLegJointIndex = _animSkeleton->nameToJointIndex("LeftUpLeg");
|
int upLegJointIndex = _animSkeleton->nameToJointIndex("LeftUpLeg");
|
||||||
glm::vec3 poleVector = calculateKneePoleVector(footJointIndex, kneeJointIndex, upLegJointIndex, hipsIndex, leftFootPose);
|
glm::vec3 poleVector = calculateKneePoleVector(footJointIndex, kneeJointIndex, upLegJointIndex, hipsIndex, leftFootPose);
|
||||||
glm::vec3 sensorPoleVector = transformVectorFast(rigToSensorMatrix, sensorPoleVector);
|
glm::vec3 sensorPoleVector = transformVectorFast(rigToSensorMatrix, poleVector);
|
||||||
|
|
||||||
// smooth toward desired pole vector from previous pole vector... to reduce jitter, but in sensor space.
|
// smooth toward desired pole vector from previous pole vector... to reduce jitter, but in sensor space.
|
||||||
if (!_prevLeftFootPoleVectorValid) {
|
if (!_prevLeftFootPoleVectorValid) {
|
||||||
|
@ -1395,7 +1395,7 @@ void Rig::updateFeet(bool leftFootEnabled, bool rightFootEnabled, const AnimPose
|
||||||
int kneeJointIndex = _animSkeleton->nameToJointIndex("RightLeg");
|
int kneeJointIndex = _animSkeleton->nameToJointIndex("RightLeg");
|
||||||
int upLegJointIndex = _animSkeleton->nameToJointIndex("RightUpLeg");
|
int upLegJointIndex = _animSkeleton->nameToJointIndex("RightUpLeg");
|
||||||
glm::vec3 poleVector = calculateKneePoleVector(footJointIndex, kneeJointIndex, upLegJointIndex, hipsIndex, rightFootPose);
|
glm::vec3 poleVector = calculateKneePoleVector(footJointIndex, kneeJointIndex, upLegJointIndex, hipsIndex, rightFootPose);
|
||||||
glm::vec3 sensorPoleVector = transformVectorFast(rigToSensorMatrix, sensorPoleVector);
|
glm::vec3 sensorPoleVector = transformVectorFast(rigToSensorMatrix, poleVector);
|
||||||
|
|
||||||
// smooth toward desired pole vector from previous pole vector... to reduce jitter
|
// smooth toward desired pole vector from previous pole vector... to reduce jitter
|
||||||
if (!_prevRightFootPoleVectorValid) {
|
if (!_prevRightFootPoleVectorValid) {
|
||||||
|
|
Loading…
Reference in a new issue