Browse Source

PR feedback

Cedric Guillemet 4 năm trước cách đây
mục cha
commit
bfa8dd5138
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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);
             }
         }