Cedric Guillemet 4 年 前
コミット
bfa8dd5138
1 ファイル変更2 行追加1 行削除
  1. 2 1
      src/Navigation/Plugins/recastJSPlugin.ts

+ 2 - 1
src/Navigation/Plugins/recastJSPlugin.ts

@@ -648,8 +648,9 @@ export class RecastJSCrowd implements ICrowd {
                 iterationCount = 1;
                 iterationCount = 1;
             }
             }
 
 
+            var step = deltaTime / iterationCount;
             for (let i = 0; i < iterationCount; i++) {
             for (let i = 0; i < iterationCount; i++) {
-                this.recastCrowd.update(deltaTime/iterationCount);
+                this.recastCrowd.update(step);
             }
             }
         }
         }