Browse Source

more linting

Cedric Guillemet 4 years ago
parent
commit
62e76e386c
1 changed files with 3 additions and 3 deletions
  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;
     public navMesh: any;
 
 
     private _maximumSubStepCount: number = 10;
     private _maximumSubStepCount: number = 10;
-    private _timeStep: number = 1/60;
+    private _timeStep: number = 1 / 60;
 
 
     /**
     /**
      * Initializes the recastJS plugin
      * Initializes the recastJS plugin
@@ -57,7 +57,7 @@ export class RecastJSPlugin implements INavigationEnginePlugin {
      * A value of 0 will disable fixed time update
      * A value of 0 will disable fixed time update
      * @param newTimeStep the new timestep to apply to this world.
      * @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;
         this._timeStep = newTimeStep;
     }
     }
 
 
@@ -635,7 +635,7 @@ export class RecastJSCrowd implements ICrowd {
                 this.recastCrowd.update(timeStep);
                 this.recastCrowd.update(timeStep);
             }
             }
         }
         }
-        
+
         // update transforms
         // update transforms
         for (let index = 0; index < this.agents.length; index++) {
         for (let index = 0; index < this.agents.length; index++) {
             this.transforms[index].position = this.getAgentPosition(this.agents[index]);
             this.transforms[index].position = this.getAgentPosition(this.agents[index]);