From cfd487c315c41beea617f4f6b8f5d412b0fb805a Mon Sep 17 00:00:00 2001 From: Joan Llobera Date: Wed, 8 Oct 2025 16:50:22 +0200 Subject: [PATCH] BUGFIX: when parsing a unity scene with mujoco element,s the mujoco package generates a value for the attribute "passive", but the attribute has been droped, it is not valid anymore in unity 3.3.6 this makes old mujoco scenes that work in unity not work anymore when upgrading the mujoco version. --- unity/Runtime/Components/MjGlobalSettings.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unity/Runtime/Components/MjGlobalSettings.cs b/unity/Runtime/Components/MjGlobalSettings.cs index d41cefe5..b336d58a 100644 --- a/unity/Runtime/Components/MjGlobalSettings.cs +++ b/unity/Runtime/Components/MjGlobalSettings.cs @@ -121,7 +121,7 @@ public struct MjcfOptionFlag { mjcf.SetAttribute("frictionloss", FrictionLoss.ToString()); mjcf.SetAttribute("limit", Limit.ToString()); mjcf.SetAttribute("contact", Contact.ToString()); - mjcf.SetAttribute("passive", Passive.ToString()); + // mjcf.SetAttribute("passive", Passive.ToString()); mjcf.SetAttribute("gravity", Gravity.ToString()); mjcf.SetAttribute("clampctrl", ClampCtrl.ToString()); mjcf.SetAttribute("warmstart", WarmStart.ToString());