Przeglądaj źródła

fix for oimojs plugin world scale issue

Adam Bowman 8 lat temu
rodzic
commit
8d64a08ce1
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      src/Physics/Plugins/babylon.oimoJSPlugin.ts

+ 1 - 0
src/Physics/Plugins/babylon.oimoJSPlugin.ts

@@ -8,6 +8,7 @@ module BABYLON {
 
         constructor(iterations?: number) {
             this.world = new OIMO.World(1 / 60, 2, iterations, true);
+            this.world.worldscale(1);
             this.world.clear();
             //making sure no stats are calculated
             this.world.isNoStat = true;