summaryrefslogtreecommitdiffstats
path: root/scene/3d/navigation.h
diff options
context:
space:
mode:
authorDualMatrix <piet.goris@gmail.com>2018-09-13 21:11:33 +0200
committerDualMatrix <piet.goris@gmail.com>2018-09-20 21:23:17 +0200
commit0b5c694b7497861a8b432d142d5758ce843559bb (patch)
treec40b101b4003e2c30ea6466c3a0ef69e4453c492 /scene/3d/navigation.h
parent8704b7787624da98cece35c1b8b8e51bde709488 (diff)
downloadredot-engine-0b5c694b7497861a8b432d142d5758ce843559bb.tar.gz
Better heuristic for the shortest path algorithm for navigation2D and navigation.
Better heuristic for the shortest path algorithm for navigation2D and navigation. It now will use the shortest distance to the polygon as cost instead of the distance to the center.
Diffstat (limited to 'scene/3d/navigation.h')
-rw-r--r--scene/3d/navigation.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/3d/navigation.h b/scene/3d/navigation.h
index 5a501039c8..8f200997cd 100644
--- a/scene/3d/navigation.h
+++ b/scene/3d/navigation.h
@@ -94,6 +94,7 @@ class Navigation : public Spatial {
Vector<Edge> edges;
Vector3 center;
+ Vector3 entry;
float distance;
int prev_edge;