diff --git a/Assets/Scripts/Exporters/VMDRecorder/UnityCameraVMDRecorder.cs b/Assets/Scripts/Exporters/VMDRecorder/UnityCameraVMDRecorder.cs index 6f15557..aae0a9d 100644 --- a/Assets/Scripts/Exporters/VMDRecorder/UnityCameraVMDRecorder.cs +++ b/Assets/Scripts/Exporters/VMDRecorder/UnityCameraVMDRecorder.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.IO; using UnityEngine; +using static Gallop.RaceDefine; public class UnityCameraVMDRecorder : MonoBehaviour { @@ -564,6 +565,8 @@ public class LiveCameraFrame Vector3 vmdRotation = new Vector3(fixedQuatenion.eulerAngles.x, 180 - fixedQuatenion.eulerAngles.y, fixedQuatenion.eulerAngles.z); + Rotation = Quaternion.Euler(vmdRotation); + var finalRotation = vmdRotation; if (lastframe == null) {