Selaa lähdekoodia

fix for oimojs plugin world scale issue

Adam Bowman 8 vuotta sitten
vanhempi
commit
8d64a08ce1
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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;