浏览代码

more linting

Cedric Guillemet 4 年之前
父节点
当前提交
62e76e386c
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/Navigation/Plugins/recastJSPlugin.ts

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

@@ -31,7 +31,7 @@ export class RecastJSPlugin implements INavigationEnginePlugin {
     public navMesh: any;
 
     private _maximumSubStepCount: number = 10;
-    private _timeStep: number = 1/60;
+    private _timeStep: number = 1 / 60;
 
     /**
      * Initializes the recastJS plugin
@@ -57,7 +57,7 @@ export class RecastJSPlugin implements INavigationEnginePlugin {
      * A value of 0 will disable fixed time update
      * @param newTimeStep the new timestep to apply to this world.
      */
-    setTimeStep(newTimeStep: number = 1./60.): void {
+    setTimeStep(newTimeStep: number = 1 / 60): void {
         this._timeStep = newTimeStep;
     }
 
@@ -635,7 +635,7 @@ export class RecastJSCrowd implements ICrowd {
                 this.recastCrowd.update(timeStep);
             }
         }
-        
+
         // update transforms
         for (let index = 0; index < this.agents.length; index++) {
             this.transforms[index].position = this.getAgentPosition(this.agents[index]);