From 6b3d34d9be39b38409580ab71cc2b3854cb3d03e Mon Sep 17 00:00:00 2001 From: Balint-H Date: Thu, 14 Nov 2024 17:32:28 +0000 Subject: [PATCH] Fix swapped params in tendons on XML import --- unity/Runtime/Components/Tendons/MjBaseTendon.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unity/Runtime/Components/Tendons/MjBaseTendon.cs b/unity/Runtime/Components/Tendons/MjBaseTendon.cs index 89a505d1..5d6815f9 100644 --- a/unity/Runtime/Components/Tendons/MjBaseTendon.cs +++ b/unity/Runtime/Components/Tendons/MjBaseTendon.cs @@ -42,8 +42,8 @@ public abstract class MjBaseTendon : MjComponent { protected override void OnParseMjcf(XmlElement mjcf) { Solver.FromMjcf(mjcf); SpringLength = mjcf.GetFloatAttribute("springlength", defaultValue: -1.0f); - Stiffness = mjcf.GetFloatAttribute("damping"); - Damping = mjcf.GetFloatAttribute("stiffness"); + Stiffness = mjcf.GetFloatAttribute("stiffness"); + Damping = mjcf.GetFloatAttribute("damping"); FromMjcf(mjcf); }