diff --git a/Assets/PantoScripts/PantoHandle.cs b/Assets/PantoScripts/PantoHandle.cs index ed01a6e..c2cd8a1 100644 --- a/Assets/PantoScripts/PantoHandle.cs +++ b/Assets/PantoScripts/PantoHandle.cs @@ -245,7 +245,7 @@ public void SetPositions(Vector3 newPosition, float? newRotation, Vector3? newGo GameObject debugObject = pantoSync.GetDebugObject(isUpper); debugObject.transform.position = newPosition; debugGodObject.transform.position = newPosition; - debugGodObject.transform.eulerAngles = new Vector3(debugGodObject.transform.eulerAngles.x, newRotation, debugGodObject.transform.eulerAngles.z); + debugGodObject.transform.eulerAngles = new Vector3(debugGodObject.transform.eulerAngles.x, (float)newRotation, debugGodObject.transform.eulerAngles.z); } if (!pantoSync.debug) {