mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-03 06:49:22 +00:00
[IKFixes] shit fixes
This commit is contained in:
parent
c69877b41d
commit
6e262bac1b
4 changed files with 24 additions and 8 deletions
|
@ -156,8 +156,13 @@ internal static class BodySystemPatches
|
|||
solver.spine.neckStiffness = IKFixes.EntryNeckStiffness.Value;
|
||||
solver.spine.bodyRotStiffness = IKFixes.EntryBodyRotStiffness.Value;
|
||||
solver.spine.rotateChestByHands = IKFixes.EntryRotateChestByHands.Value;
|
||||
}
|
||||
|
||||
if (!IKSystem.vrik.solver.leftLeg.usingKneeTracker)
|
||||
IKSystem.vrik.solver.leftLeg.bendToTargetWeight = IKFixes.EntryBendToTargetWeight.Value;
|
||||
if (!IKSystem.vrik.solver.rightLeg.usingKneeTracker)
|
||||
IKSystem.vrik.solver.rightLeg.bendToTargetWeight = IKFixes.EntryBendToTargetWeight.Value;
|
||||
}
|
||||
|
||||
int count = IKSystem.Instance.AllTrackingPoints.FindAll((TrackingPoint m) => m.isActive && m.isValid && m.suggestedRole > TrackingPoint.TrackingRole.Invalid).Count;
|
||||
|
||||
// fixes having all tracking points disabled forcing calibration
|
||||
|
@ -230,10 +235,16 @@ internal static class BodySystemPatches
|
|||
{
|
||||
IKSystem.Instance.applyOriginalHipPosition = false;
|
||||
IKSystem.Instance.applyOriginalHipRotation = false;
|
||||
IKSystem.vrik.solver.leftLeg.bendToTargetWeight = 0f;
|
||||
IKSystem.vrik.solver.rightLeg.bendToTargetWeight = 0f;
|
||||
IKSystem.vrik.solver.leftLeg.bendGoalWeight = 1f;
|
||||
IKSystem.vrik.solver.rightLeg.bendGoalWeight = 1f;
|
||||
if (IKSystem.vrik.solver.leftLeg.usingKneeTracker)
|
||||
{
|
||||
IKSystem.vrik.solver.leftLeg.bendToTargetWeight = 0f;
|
||||
IKSystem.vrik.solver.leftLeg.bendGoalWeight = 1f;
|
||||
}
|
||||
if (IKSystem.vrik.solver.rightLeg.usingKneeTracker)
|
||||
{
|
||||
IKSystem.vrik.solver.rightLeg.bendToTargetWeight = 0f;
|
||||
IKSystem.vrik.solver.rightLeg.bendGoalWeight = 1f;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue