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

@ -151,7 +151,7 @@ public:
/// @{
/// Add an off-mesh link.
S32 addLink(const Point3F &from, const Point3F &to, U32 flags = 0);
S32 addLink(const Point3F &from, const Point3F &to, bool biDir, U32 flags = 0);
/// Get the ID of the off-mesh link near the point.
S32 getLink(const Point3F &pos);
@ -168,6 +168,10 @@ public:
/// Get the flags used by a link.
LinkData getLinkFlags(U32 idx);
bool getLinkDir(U32 idx);
void setLinkDir(U32 idx, bool biDir);
/// Set flags used by a link.
void setLinkFlags(U32 idx, const LinkData &d);