From 5e664c73fcecfad8fec98d9e70f83b89b7a8777d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=A6=E5=8F=B3=E7=9C=8B?= <1918891542@qq.com> Date: Tue, 1 Aug 2023 12:33:21 +0800 Subject: [PATCH] update formation --- .../umamusume/Gallop/Live/Cutt/LiveTimelineControl.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineControl.cs b/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineControl.cs index 1b9d4fc..f2fc8cf 100644 --- a/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineControl.cs +++ b/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineControl.cs @@ -617,6 +617,10 @@ namespace Gallop.Live.Cutt var x = chara.transform.eulerAngles.x; var z = chara.transform.eulerAngles.z; chara.transform.eulerAngles = new Vector3(x, Mathf.Lerp(curKey.RotationY, nextKey.RotationY, ratio), z); + + var local_x = chara.Position.localEulerAngles.x; + var local_z = chara.Position.localEulerAngles.z; + chara.Position.localEulerAngles = new Vector3(local_x, Mathf.Lerp(curKey.LocalRotationY, nextKey.LocalRotationY, ratio), local_z); } else { @@ -624,6 +628,10 @@ namespace Gallop.Live.Cutt var x = chara.transform.eulerAngles.x; var z = chara.transform.eulerAngles.z; chara.transform.eulerAngles = new Vector3(x, curKey.RotationY, z); + + var local_x = chara.Position.localEulerAngles.x; + var local_z = chara.Position.localEulerAngles.z; + chara.Position.localEulerAngles = new Vector3(local_x, curKey.LocalRotationY, local_z); } } }