From 1b2fc9b3ef6eedcd958d7bc5abb589cd686f25ec Mon Sep 17 00:00:00 2001 From: jonbons Date: Sun, 15 Dec 2024 19:30:02 -0600 Subject: [PATCH] Added syncing of head angles --- JBTrackIR/Plugin.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/JBTrackIR/Plugin.cs b/JBTrackIR/Plugin.cs index 0a6ddd4..e8a56d9 100644 --- a/JBTrackIR/Plugin.cs +++ b/JBTrackIR/Plugin.cs @@ -204,6 +204,7 @@ public class Plugin : BaseUnityPlugin //rot.z = Mathf.Clamp(-tid.fNPRoll * rotationReductionFactor, rollLimits.lower, rollLimits.upper); } + __instance.HeadRotation = rot; // sync head angles __instance.ProceduralWeaponAnimation.SetHeadRotation(rot); //Logger.LogInfo(string.Format("TIR DATA Final pos = {0}; Final rot = {1}", pos, rot)); }