Version 2.1.2: Python bindings, OBJ assets support, bugfixes.
PiperOrigin-RevId: 434731612 Change-Id: I0cfda3e7a3d1c72036764986efc252ffa1b8c6b0
This commit is contained in:
@@ -43,7 +43,7 @@ public class MjInertial : MjComponent {
|
||||
protected override XmlElement OnGenerateMjcf(XmlDocument doc) {
|
||||
var mjcf = (XmlElement)doc.CreateElement("inertial");
|
||||
MjEngineTool.PositionRotationToMjcf(mjcf, this);
|
||||
mjcf.SetAttribute("mass", $"{Mass}");
|
||||
mjcf.SetAttribute("mass", MjEngineTool.MakeLocaleInvariant($"{Mass}"));
|
||||
mjcf.SetAttribute("diaginertia",
|
||||
MjEngineTool.Vector3ToMjcf(MjEngineTool.MjExtents(DiagInertia)));
|
||||
return mjcf;
|
||||
|
||||
Reference in New Issue
Block a user