Browse Source

PR feedback

Cedric Guillemet 4 years ago
parent
commit
bfa8dd5138
1 changed files with 2 additions and 1 deletions
  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;
             }
 
+            var step = deltaTime / iterationCount;
             for (let i = 0; i < iterationCount; i++) {
-                this.recastCrowd.update(deltaTime/iterationCount);
+                this.recastCrowd.update(step);
             }
         }