minor bug fix

This commit is contained in:
左右看
2023-06-30 08:55:28 +08:00
parent 7fb0a48996
commit 3230da53c8
8 changed files with 2 additions and 43 deletions
+1
View File
@@ -477,6 +477,7 @@ public class UmaContainer : MonoBehaviour
ik.solvers.lookAt.bodyWeight = 0.25f;
ik.solvers.lookAt.clampWeightHead = 0.62f;
ik.solvers.lookAt.target = TrackTarget.transform;
ik.solvers.lookAt.spineWeightCurve = new AnimationCurve(new Keyframe[2] { new Keyframe(0f, 1f), new Keyframe(1f, 0.3f) });
IK = ik;
BipedRagdollCreator.Create(r, options);
+1 -1
View File
@@ -300,8 +300,8 @@ public class UmaViewerBuilder : MonoBehaviour
CurrentUMAContainer.HeadBone = (GameObject)CurrentUMAContainer.Body.GetComponent<AssetHolder>()._assetTable["head"];
CurrentUMAContainer.EyeHeight = CurrentUMAContainer.Head.GetComponent<AssetHolder>()._assetTableValue["head_center_offset_y"];
CurrentUMAContainer.MergeModel();
CurrentUMAContainer.Initialize(!UI.isTPose);
CurrentUMAContainer.SetHeight(-1);
CurrentUMAContainer.Initialize(!UI.isTPose);
if (!UI.isTPose)
{
LoadAsset(UmaViewerMain.Instance.AbMotions.FirstOrDefault(a => a.Name.EndsWith($"anm_eve_chr{id}_00_idle01_loop")));