Fix MjHingeJoint.cs range with MakeLocaleInvariant
This commit is contained in:
@@ -83,7 +83,7 @@ namespace Mujoco {
|
|||||||
if (RangeLower > RangeUpper) {
|
if (RangeLower > RangeUpper) {
|
||||||
throw new ArgumentException("Lower range value can't be bigger than Higher");
|
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}");
|
mjcf.SetAttribute("ref", $"{Configuration}");
|
||||||
|
|
||||||
return mjcf;
|
return mjcf;
|
||||||
|
|||||||
Reference in New Issue
Block a user