mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-18 11:50:57 +00:00
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:
parent
de1642c33e
commit
2df2cb5c15
8 changed files with 287 additions and 87 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue