Fix swapped params in tendons on XML import
This commit is contained in:
@@ -42,8 +42,8 @@ public abstract class MjBaseTendon : MjComponent {
|
|||||||
protected override void OnParseMjcf(XmlElement mjcf) {
|
protected override void OnParseMjcf(XmlElement mjcf) {
|
||||||
Solver.FromMjcf(mjcf);
|
Solver.FromMjcf(mjcf);
|
||||||
SpringLength = mjcf.GetFloatAttribute("springlength", defaultValue: -1.0f);
|
SpringLength = mjcf.GetFloatAttribute("springlength", defaultValue: -1.0f);
|
||||||
Stiffness = mjcf.GetFloatAttribute("damping");
|
Stiffness = mjcf.GetFloatAttribute("stiffness");
|
||||||
Damping = mjcf.GetFloatAttribute("stiffness");
|
Damping = mjcf.GetFloatAttribute("damping");
|
||||||
FromMjcf(mjcf);
|
FromMjcf(mjcf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user