diff --git a/unity/Runtime/Components/Joints/MjJointSettings.cs b/unity/Runtime/Components/Joints/MjJointSettings.cs index 1b9e87e9..c45a6c1c 100644 --- a/unity/Runtime/Components/Joints/MjJointSettings.cs +++ b/unity/Runtime/Components/Joints/MjJointSettings.cs @@ -167,7 +167,7 @@ namespace Mujoco { bool defaultLimited = false; if (mjcf.OwnerDocument.GetElementsByTagName("compiler")[0] is not XmlElement - compilerElement || !compilerElement.GetBoolAttribute("autolimits").Equals("false")) { + compilerElement || compilerElement.GetBoolAttribute("autolimits", true)) { defaultLimited = mjcf.HasAttribute("range"); }