Cedric Guillemet 4 년 전
부모
커밋
b6a0cca6f3
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  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++)
         {