From 627ef08a296ce48de5563fce743617da236376a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=A6=E5=8F=B3=E7=9C=8B?= <1918891542@qq.com> Date: Wed, 2 Aug 2023 23:57:49 +0800 Subject: [PATCH] minor bug fix --- Assets/Scripts/Exporters/VMDRecorder/UnityCameraVMDRecorder.cs | 3 +++ 1 file changed, 3 insertions(+) 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) {