mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-01 13:59:22 +00:00
Fix emote offset issue.
This commit is contained in:
parent
8a69c2d51e
commit
1921c7b782
2 changed files with 11 additions and 10 deletions
|
@ -208,6 +208,7 @@ internal class DesktopVRIKSystem : MonoBehaviour
|
||||||
HandleLocomotionTracking();
|
HandleLocomotionTracking();
|
||||||
UpdateLocomotionWeight();
|
UpdateLocomotionWeight();
|
||||||
ApplyBodySystemWeights();
|
ApplyBodySystemWeights();
|
||||||
|
ResetAvatarLocalPosition();
|
||||||
}
|
}
|
||||||
|
|
||||||
void HandleLocomotionTracking()
|
void HandleLocomotionTracking()
|
||||||
|
@ -306,6 +307,13 @@ internal class DesktopVRIKSystem : MonoBehaviour
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ResetAvatarLocalPosition()
|
||||||
|
{
|
||||||
|
// Reset avatar offset
|
||||||
|
avatarTransform.localPosition = Vector3.zero;
|
||||||
|
avatarTransform.localRotation = Quaternion.identity;
|
||||||
|
}
|
||||||
|
|
||||||
public void OnSetupAvatarDesktop()
|
public void OnSetupAvatarDesktop()
|
||||||
{
|
{
|
||||||
if (!Setting_Enabled) return;
|
if (!Setting_Enabled) return;
|
||||||
|
@ -382,13 +390,6 @@ internal class DesktopVRIKSystem : MonoBehaviour
|
||||||
|
|
||||||
public void OnPreSolverUpdate()
|
public void OnPreSolverUpdate()
|
||||||
{
|
{
|
||||||
// Reset avatar offset
|
|
||||||
avatarTransform.localPosition = Vector3.zero;
|
|
||||||
avatarTransform.localRotation = Quaternion.identity;
|
|
||||||
|
|
||||||
// Don't run during emotes
|
|
||||||
if (_ikEmotePlaying) return;
|
|
||||||
|
|
||||||
// Set plant feet
|
// Set plant feet
|
||||||
avatarIKSolver.plantFeet = Setting_PlantFeet;
|
avatarIKSolver.plantFeet = Setting_PlantFeet;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"_id": 117,
|
"_id": 117,
|
||||||
"name": "DesktopVRIK",
|
"name": "DesktopVRIK",
|
||||||
"modversion": "4.1.6",
|
"modversion": "4.1.7",
|
||||||
"gameversion": "2022r170",
|
"gameversion": "2022r170",
|
||||||
"loaderversion": "0.5.7",
|
"loaderversion": "0.5.7",
|
||||||
"modtype": "Mod",
|
"modtype": "Mod",
|
||||||
|
@ -17,8 +17,8 @@
|
||||||
"requirements": [
|
"requirements": [
|
||||||
"BTKUILib"
|
"BTKUILib"
|
||||||
],
|
],
|
||||||
"downloadlink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/releases/download/DesktopVRIK-v4.1.6/DesktopVRIK.dll",
|
"downloadlink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/releases/download/r1/DesktopVRIK.dll",
|
||||||
"sourcelink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/",
|
"sourcelink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/",
|
||||||
"changelog": "- Enable useAnimatedBendNormal when Locomotion tracking is disabled. This fixes some sitting animations that bend at unnatural angles.",
|
"changelog": "- Enable useAnimatedBendNormal when Locomotion tracking is disabled. This fixes some sitting animations that bend at unnatural angles.\n- Fix avatar root offset not being reset when entering/playing emotes.",
|
||||||
"embedcolor": "9b59b6"
|
"embedcolor": "9b59b6"
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue