Просмотр исходного кода

Merge pull request #244 from Temechon/patch-6

Fix bug with world variable
deltakosh 11 лет назад
Родитель
Сommit
627f59ea0d
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      Babylon/Physics/Plugins/babylon.oimoJSPlugin.ts

+ 3 - 3
Babylon/Physics/Plugins/babylon.oimoJSPlugin.ts

@@ -87,7 +87,7 @@ module BABYLON {
                 rot: rotations,
                 rot: rotations,
                 move: options.mass != 0,
                 move: options.mass != 0,
                 config: [options.mass, options.friction, options.restitution],
                 config: [options.mass, options.friction, options.restitution],
-                world: this.world
+                world: this._world
             });
             });
 
 
             this._registeredMeshes.push({
             this._registeredMeshes.push({
@@ -210,7 +210,7 @@ module BABYLON {
                 pos1: [pivot1.x, pivot1.y, pivot1.z],
                 pos1: [pivot1.x, pivot1.y, pivot1.z],
                 collision: options.collision,
                 collision: options.collision,
                 spring: options.spring,
                 spring: options.spring,
-                world: this.world
+                world: this._world
             });
             });
 
 
             return true;
             return true;
@@ -276,4 +276,4 @@ module BABYLON {
             }
             }
         }
         }
     }
     }
-}
+}