diff --git a/unity/Runtime/Tools/MjcfGenerationContext.cs b/unity/Runtime/Tools/MjcfGenerationContext.cs index 1e75328c..1e3f07ca 100644 --- a/unity/Runtime/Tools/MjcfGenerationContext.cs +++ b/unity/Runtime/Tools/MjcfGenerationContext.cs @@ -125,9 +125,9 @@ public class MjcfGenerationContext { mjcf.SetAttribute( "size", MjEngineTool.MakeLocaleInvariant( - $@"{hFieldComponent.HeightMapScale.x*hFieldComponent.HeightMapLength/2} - {hFieldComponent.HeightMapScale.z * hFieldComponent.HeightMapWidth/2} - {heightRange} + $@"{hFieldComponent.HeightMapScale.x*hFieldComponent.HeightMapLength/2} + {hFieldComponent.HeightMapScale.z * hFieldComponent.HeightMapWidth/2} + {heightRange} {baseHeight}")); } }