mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-08-14 15:19:53 +00:00
Slightly better heuristic for path finder (Mr. Ericsson would not approve!)
Visualize A* open list. Visualize parent nodes when querying nodes around.
This commit is contained in:
@@ -413,6 +413,13 @@ static void drawArc(const float* p0, const float* p1)
|
||||
}
|
||||
}
|
||||
|
||||
void rcDrawArc(const float* p0, const float* p1)
|
||||
{
|
||||
glBegin(GL_LINES);
|
||||
drawArc(p0, p1);
|
||||
glEnd();
|
||||
}
|
||||
|
||||
void rcDebugDrawRegionConnections(const rcContourSet& cset, const float* orig, float cs, float ch, const float alpha)
|
||||
{
|
||||
// Draw centers
|
||||
@@ -435,8 +442,6 @@ void rcDebugDrawRegionConnections(const rcContourSet& cset, const float* orig, f
|
||||
{
|
||||
getContourCenter(cont2, orig, cs, ch, pos2);
|
||||
drawArc(pos, pos2);
|
||||
// glVertex3fv(pos);
|
||||
// glVertex3fv(pos2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user