Fix MjHingeJoint.cs range with MakeLocaleInvariant

This commit is contained in:
stonfute
2024-06-05 15:56:23 +02:00
committed by GitHub
parent 40755e165d
commit 6147c2fc6e
@@ -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;