You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Prevent pop in soft IK when idling in Leg IK node.
#rb halfdan.ingvarsson #JIRA UE-204487 [CL 30788951 by kiaran ritchie in ue5-main branch]
This commit is contained in:
@@ -413,9 +413,11 @@ bool FAnimNode_LegIK::DoLegReachIK(FAnimLegIKData& InLegData)
|
||||
// The solver is needed if:
|
||||
// - Our FK foot is not at the IK goal.
|
||||
// - We're applying a rotation limit.
|
||||
// - We're using Soft IK (even if foot is at goal, it may be bent by the soft IK if limb is fully extended)
|
||||
const bool bUsingSoftIK = SoftPercentLength < 1.0f && SoftAlpha > 0.f;
|
||||
const bool bFootAtGoal = FootFKLocation.Equals(FootIKLocation, ReachPrecision);
|
||||
const bool bUsingRotationLimit = InLegData.LegDefPtr->bEnableRotationLimit;
|
||||
const bool bNeedsSolver = !bFootAtGoal || bUsingRotationLimit;
|
||||
const bool bNeedsSolver = !bFootAtGoal || bUsingRotationLimit || bUsingSoftIK;
|
||||
if (!bNeedsSolver && !bHasTwistOffset)
|
||||
{
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user