diff --git a/unity/Runtime/Components/Joints/MjHingeJoint.cs b/unity/Runtime/Components/Joints/MjHingeJoint.cs index 8549c738..8d84d649 100644 --- a/unity/Runtime/Components/Joints/MjHingeJoint.cs +++ b/unity/Runtime/Components/Joints/MjHingeJoint.cs @@ -83,7 +83,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;