bug:lookat

Signed-off-by: TRAfoer <lhf190@outlook.com>
This commit is contained in:
2025-07-13 14:20:43 +08:00
parent c4c1c05ed6
commit 7642bf1d9d
10 changed files with 1260 additions and 1285 deletions

View File

@@ -46,7 +46,17 @@ namespace Ichni.RhythmGame
{
timeDurationSubmodule = new TimeDurationSubmodule(this);
}
// protected override void Update()
// {
// }
// void LateUpdate()
// {
// if (timeDurationSubmodule.CheckTimeInDuration(EditorManager.instance.songInformation.songTime))
// {
// UpdateAnimation(EditorManager.instance.songInformation.songTime);
// }
// }
protected override void UpdateAnimation(float songTime)
{
if (lookAtObject is null) return;
@@ -64,13 +74,15 @@ namespace Ichni.RhythmGame
// targetTransformSubmodule.eulerAnglesOffsetLock = true;
// targetTransformSubmodule.currentEulerAngles = eulerAnglesOffset;
}
else
else if (animationReturnType != FlexibleReturnType.MiddleInterval)
{
if (animationReturnType != FlexibleReturnType.MiddleInterval) targetTransformSubmodule.eulerAnglesOffset.Add(Vector3.zero);
targetTransformSubmodule.eulerAnglesOffset.Add(Vector3.zero);
targetTransformSubmodule.eulerAnglesDirtyMark = true;
animationReturnType = FlexibleReturnType.MiddleInterval;
// targetTransformSubmodule.eulerAnglesOffsetLock = false;
}
// targetTransformSubmodule.eulerAnglesOffsetLock = false;
}
public override void SaveBM()