From e782208faa1937c1592b1467f7f36f368b80e3f9 Mon Sep 17 00:00:00 2001 From: c0nd3v <32241825+c0nd3v@users.noreply.github.com> Date: Sun, 17 Dec 2023 12:25:06 -0500 Subject: [PATCH] Allow Radius 0 in Demo Recast C++ demo allows radius 0 and I have a use case for it. I think it should be allowed --- src/DotRecast.Recast.Demo/UI/RcSettingsView.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DotRecast.Recast.Demo/UI/RcSettingsView.cs b/src/DotRecast.Recast.Demo/UI/RcSettingsView.cs index 303c0e7..50f69c0 100644 --- a/src/DotRecast.Recast.Demo/UI/RcSettingsView.cs +++ b/src/DotRecast.Recast.Demo/UI/RcSettingsView.cs @@ -123,7 +123,7 @@ public class RcSettingsView : IRcView ImGui.Text("Agent"); ImGui.Separator(); ImGui.SliderFloat("Height", ref settings.agentHeight, 0.1f, 5f, "%.1f"); - ImGui.SliderFloat("Radius", ref settings.agentRadius, 0.1f, 5f, "%.1f"); + ImGui.SliderFloat("Radius", ref settings.agentRadius, 0.0f, 5f, "%.1f"); ImGui.SliderFloat("Max Climb", ref settings.agentMaxClimb, 0.1f, 5f, "%.1f"); ImGui.SliderFloat("Max Slope", ref settings.agentMaxSlope, 1f, 90f, "%.0f"); ImGui.SliderFloat("Max Acceleration", ref settings.agentMaxAcceleration, 8f, 999f, "%.1f"); @@ -262,4 +262,4 @@ public class RcSettingsView : IRcView { this.maxPolys = maxPolys; } -} \ No newline at end of file +}