mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
fix small cheese emotes and layer weights
This commit is contained in:
parent
09cb3838a6
commit
57e7cfd35a
4 changed files with 10 additions and 7 deletions
|
@ -329,7 +329,6 @@ internal class DesktopVRIKSystem : MonoBehaviour
|
|||
if (avatarVRIK == null) return;
|
||||
|
||||
if (isEmotePlaying == _ikEmotePlaying) return;
|
||||
|
||||
_ikEmotePlaying = isEmotePlaying;
|
||||
|
||||
if (avatarLookAtIK != null)
|
||||
|
@ -535,6 +534,9 @@ internal class DesktopVRIKSystem : MonoBehaviour
|
|||
avatarIKSolver.spine.positionWeight = 0f;
|
||||
avatarIKSolver.spine.rotationWeight = 1f;
|
||||
|
||||
// Set so emotes play properly
|
||||
avatarIKSolver.spine.maxRootAngle = 180f;
|
||||
|
||||
// We disable these ourselves now, as we no longer use BodySystem
|
||||
avatarIKSolver.spine.maintainPelvisPosition = 1f;
|
||||
avatarIKSolver.spine.positionWeight = 0f;
|
||||
|
@ -596,14 +598,14 @@ internal class DesktopVRIKSystem : MonoBehaviour
|
|||
switch (pose)
|
||||
{
|
||||
case AvatarPose.Default:
|
||||
SetMusclesToValue(0f);
|
||||
break;
|
||||
case AvatarPose.Initial:
|
||||
if (HasCustomIKPose())
|
||||
{
|
||||
SetCustomLayersWeights(0f, 1f);
|
||||
return;
|
||||
}
|
||||
SetMusclesToValue(0f);
|
||||
break;
|
||||
case AvatarPose.Initial:
|
||||
_humanPoseHandler.SetHumanPose(ref _humanPoseInitial);
|
||||
break;
|
||||
case AvatarPose.IKPose:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue