| 32 | #include <sstream> |
| 33 | |
| 34 | void AIPaths::Draw() { |
| 35 | for (PointMap::const_iterator iter = points.begin(); iter != points.end(); ++iter) { |
| 36 | const vec3 &point = iter->second; |
| 37 | DebugDraw::Instance()->AddWireSphere(point, |
| 38 | 0.5f, |
| 39 | vec4(0.0f, 0.5f, 0.5f, 0.5f), |
| 40 | _delete_on_draw); |
| 41 | } |
| 42 | for (auto &connection : connections) { |
| 43 | DebugDraw::Instance()->AddLine(GetPointPosition(connection.point_ids[0]), |
| 44 | GetPointPosition(connection.point_ids[1]), |
| 45 | vec4(0.0f, 0.5f, 0.5f, 0.5f), |
| 46 | _delete_on_draw); |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | int AIPaths::GetNearestPoint(const vec3 &pos) { |
| 51 | float closest_distance; |
nothing calls this directly
no test coverage detected