|
@@ -353,7 +353,7 @@ picked = navControl;
|
|
|
[NOTE]
|
|
|
|
|
|
====
|
|
|
-This tutorial uses a custom control, `NavigationControl`, that extends the `NavMeshPathfinder` class. As this is a tutorial, some extra variables are used for dispalying the navigation path and are not needed. The constructor for `NavMeshPathfinder` requires just the the passing of the `NavMesh` object, which makes for a cleaner control.
|
|
|
+This tutorial uses a custom control, `NavigationControl`, that extends the `NavMeshPathfinder` class. As this is a tutorial, some extra variables are used for displaying the navigation path and are not needed. The constructor for `NavMeshPathfinder` requires just the the passing of the `NavMesh` object, which makes for a cleaner control.
|
|
|
|
|
|
[source, java]
|
|
|
----
|
|
@@ -543,7 +543,7 @@ private void startPathFinder() {
|
|
|
warpInside(target);
|
|
|
System.out.println("Target " + target);
|
|
|
boolean success;
|
|
|
- //comput the path
|
|
|
+ //compute the path
|
|
|
success = computePath(target);
|
|
|
System.out.println("SUCCESS = " + success);
|
|
|
if (success) {
|