Skip to content

Commit

Permalink
cast to float
Browse files Browse the repository at this point in the history
  • Loading branch information
corinnaj committed May 19, 2021
1 parent 3b6a713 commit 3b91bfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/PantoScripts/PantoHandle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 3b91bfe

Please sign in to comment.