diff --git a/IKFixes/ChatBoxExtensions.csproj b/IKFixes/ChatBoxExtensions.csproj deleted file mode 100644 index d83ed14..0000000 --- a/IKFixes/ChatBoxExtensions.csproj +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - $(NoWarn);MSB3270 - - - - - - $(MsBuildThisFileDirectory)\..\.ManagedLibs\ml_prm.dll - False - - - $(MsBuildThisFileDirectory)\..\.ManagedLibs\ChatBox.dll - False - - - - diff --git a/IKFixes/HarmonyPatches.cs b/IKFixes/HarmonyPatches.cs index 6dc8bb7..e4ec1ec 100644 --- a/IKFixes/HarmonyPatches.cs +++ b/IKFixes/HarmonyPatches.cs @@ -253,6 +253,11 @@ internal static class BodySystemPatches IKSystem.vrik.solver.rightLeg.bendGoalWeight = 1f; } } + + internal static void OffsetSimulatedRootAngle(float deltaRotation) + { + _ikSimulatedRootAngle = Mathf.Repeat(_ikSimulatedRootAngle + deltaRotation, 360f); + } } internal static class IKSystemPatches @@ -295,7 +300,10 @@ internal static class PlayerSetupPatches // Prevent targeting previous movement parent if (lastMovementParent == currentParent || lastMovementParent == null) + { IKSystem.vrik.solver.AddPlatformMotion(deltaPosition, deltaRotation, currentPosition); + BodySystemPatches.OffsetSimulatedRootAngle(deltaRotation.eulerAngles.y); + } lastMovementParent = currentParent; lastMovementPosition = currentPosition; diff --git a/IKFixes/format.json b/IKFixes/format.json index 9db2229..7ff1caf 100644 --- a/IKFixes/format.json +++ b/IKFixes/format.json @@ -6,7 +6,7 @@ "loaderversion": "0.6.1", "modtype": "Mod", "author": "NotAKidoS", - "description": "A few small fixes and configuration options to IK. Major ones are listed below:\n\n**FBT** - Fixes root rotation animation bleeding, chest tracking, locomotion animations, and bend goal offsets.\n\n**Halfbody** - Fixes footsteps while on a Movement Parent & feet always pointing in head direction.", + "description": "A few small fixes and configuration options to IK. Major ones are listed below:\n\n**FBT** - Fixes root rotation animation bleeding, chest tracking, locomotion animations, chair seated direction, and bend goal offsets.\n\n**Halfbody** - Fixes footsteps while on a Movement Parent & feet always pointing in head direction.", "searchtags": [ "knee", "ik", @@ -17,7 +17,7 @@ "requirements": [ "None" ], - "downloadlink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/releases/download/r8/IKFixes.dll", + "downloadlink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/releases/download/r20/IKFixes.dll", "sourcelink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/tree/main/IKFixes/", "changelog": "- Updates for 2023r171\n- Removed unneeded settings (IKPose & NetIKPass).\n- Fixed halfbody fake root angle option.\n- Added Reset Settings UIExpansionKit button.", "embedcolor": "f46e49"