off mesh connection tool

Adds off mesh connection tool
upgrade functionality to allow setting the direction to be bi-directional
added immediate draw to duDebugDrawtorque so we can draw offmesh connections
This commit is contained in:
marauder2k7 2025-07-24 23:43:35 +01:00
parent de1642c33e
commit 2df2cb5c15
8 changed files with 287 additions and 87 deletions

View file

@ -69,9 +69,6 @@ void TileTool::onRender3D()
if (mNavMesh.isNull())
return;
// Optional: Draw all tile bounds as overlays
//mNavMesh->renderTilesOverlay(DebugDraw::get()->getDD());
if(mCurTile != -1)
renderBoxOutline(mNavMesh->getTileBox(mCurTile), ColorI::BLUE);
@ -87,8 +84,8 @@ void TileTool::buildTile()
bool TileTool::updateGuiInfo()
{
GuiTextCtrl* statusbar;
Sim::findObject("EWorldEditorStatusBarInfo", statusbar);
SimObject* statusbar;
Sim::findObject("EditorGuiStatusBar", statusbar);
GuiTextCtrl* selectionBar;
Sim::findObject("EWorldEditorStatusBarSelection", selectionBar);
@ -98,7 +95,7 @@ bool TileTool::updateGuiInfo()
text = "LMB To select NavMesh Tile";
if (statusbar)
statusbar->setText(text);
Con::executef(statusbar, "setInfo", text.c_str());
if (mSelTile != -1)
text = String::ToString("Selected Tile: %d", mSelTile);