mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +00:00
[IKFixes] oops
This commit is contained in:
parent
bc8cc7a1ad
commit
9bce6120df
3 changed files with 10 additions and 23 deletions
|
@ -1,21 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<!-- Mute SDraw's funny warning, because he only compilled for x64 while most people compile for both -->
|
||||
<NoWarn>$(NoWarn);MSB3270</NoWarn>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Didn't put in the Directory.Build.props because it spams funny warnings... -->
|
||||
<ItemGroup>
|
||||
<Reference Include="ml_prm">
|
||||
<HintPath>$(MsBuildThisFileDirectory)\..\.ManagedLibs\ml_prm.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="ChatBox">
|
||||
<HintPath>$(MsBuildThisFileDirectory)\..\.ManagedLibs\ChatBox.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
|
@ -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;
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue