Replace NavigationServer2D Point struct with Vector2

Replaces NavigationServer2D Point struct with Vector2.
This commit is contained in:
smix8
2025-04-10 01:03:58 +02:00
parent 06c71fbf40
commit 1c03b15b4f
4 changed files with 58 additions and 66 deletions
+1 -7
View File
@@ -71,11 +71,6 @@ struct EdgeKey {
}
};
struct Point {
Vector2 pos;
PointKey key;
};
struct Edge {
/// The gateway in the edge, as, in some case, the whole edge might not be navigable.
struct Connection {
@@ -103,8 +98,7 @@ struct Polygon {
/// Navigation region or link that contains this polygon.
const NavBaseIteration2D *owner = nullptr;
/// The points of this `Polygon`
LocalVector<Point> points;
LocalVector<Vector2> vertices;
/// The edges of this `Polygon`
LocalVector<Edge> edges;