obstacle layout

This commit is contained in:
ikpil 2023-07-29 10:47:12 +09:00
parent b115f816b4
commit eb8eaa1d36
1 changed files with 10 additions and 0 deletions

View File

@ -2,6 +2,7 @@
using DotRecast.Recast.Demo.Draw; using DotRecast.Recast.Demo.Draw;
using DotRecast.Recast.DemoTool; using DotRecast.Recast.DemoTool;
using DotRecast.Recast.DemoTool.Tools; using DotRecast.Recast.DemoTool.Tools;
using ImGuiNET;
using Serilog; using Serilog;
namespace DotRecast.Recast.Demo.Tools; namespace DotRecast.Recast.Demo.Tools;
@ -27,6 +28,15 @@ public class ObstacleTool : IRcTool
public void Layout() public void Layout()
{ {
if (ImGui.Button("Remove All"))
{
//m_sample->clearAllTempObstacles();
}
ImGui.Separator();
ImGui.Text("Click LMB to create an obstacle.");
ImGui.Text("Shift+LMB to remove an obstacle.");
} }
public void HandleClick(RcVec3f s, RcVec3f p, bool shift) public void HandleClick(RcVec3f s, RcVec3f p, bool shift)