mirror of
https://github.com/overte-org/overte.git
synced 2025-04-12 14:42:11 +02:00
Fix for character walk animations in desktop mode.
(cherry picked from commit f19b1d9890
)
This commit is contained in:
parent
f4096c3931
commit
63ee8c0ccb
1 changed files with 7 additions and 2 deletions
|
@ -1557,8 +1557,13 @@ void Rig::updateFromControllerParameters(const ControllerParameters& params, flo
|
|||
params.primaryControllerPoses[PrimaryControllerType_LeftFoot], params.primaryControllerPoses[PrimaryControllerType_RightFoot]);
|
||||
|
||||
|
||||
// Always relax IK chains toward joint limit centers.
|
||||
_animVars.set("solutionSource", (int)AnimInverseKinematics::SolutionSource::RelaxToLimitCenterPoses);
|
||||
if (headEnabled) {
|
||||
// Blend IK chains toward the joint limit centers, this should stablize head and hand ik.
|
||||
_animVars.set("solutionSource", (int)AnimInverseKinematics::SolutionSource::RelaxToLimitCenterPoses);
|
||||
} else {
|
||||
// Blend IK chains toward the UnderPoses, so some of the animaton motion is present in the IK solution.
|
||||
_animVars.set("solutionSource", (int)AnimInverseKinematics::SolutionSource::RelaxToUnderPoses);
|
||||
}
|
||||
|
||||
// if the hips or the feet are being controlled.
|
||||
if (hipsEnabled || rightFootEnabled || leftFootEnabled) {
|
||||
|
|
Loading…
Reference in a new issue