Cedric Guillemet 4 rokov pred
rodič
commit
b6a0cca6f3
1 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  1. 3 3
      src/Navigation/Plugins/recastJSPlugin.ts

+ 3 - 3
src/Navigation/Plugins/recastJSPlugin.ts

@@ -733,9 +733,9 @@ export class RecastJSCrowd implements ICrowd {
      */
     getCorners(index: number): Vector3[]
     {
-        var pt: number;
-        let navPath = this.recastCrowd.getPath(index);
-        let pointCount = navPath.getPointCount();
+        let pt: number;
+        const navPath = this.recastCrowd.getPath(index);
+        const pointCount = navPath.getPointCount();
         var positions = [];
         for (pt = 0; pt < pointCount; pt++)
         {