diff --git a/unity/Runtime/Components/Joints/MjHingeJoint.cs b/unity/Runtime/Components/Joints/MjHingeJoint.cs index 9a997b6c..08e5958b 100644 --- a/unity/Runtime/Components/Joints/MjHingeJoint.cs +++ b/unity/Runtime/Components/Joints/MjHingeJoint.cs @@ -90,7 +90,7 @@ namespace Mujoco { if (RangeLower > RangeUpper) { throw new ArgumentException("Lower range value can't be bigger than Higher"); } - mjcf.SetAttribute("range", $"{RangeLower} {RangeUpper}"); + mjcf.SetAttribute("range", MjEngineTool.MakeLocaleInvariant($"{RangeLower} {RangeUpper}")); mjcf.SetAttribute("ref", $"{Configuration}"); return mjcf;