瀏覽代碼

Oimo.js precision updated

WORLD_SCALE is the precision of physics calculations. Set this variable to 1 improves the world precision (no box going through others). This parameter should be updated according to the user precision scene in order to get faster calculations.
Temechon 11 年之前
父節點
當前提交
60685a2f6c
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Oimo.js

+ 2 - 2
Oimo.js

@@ -11,8 +11,8 @@ var OIMO = { REVISION: 'DEV.1.1.1a' };
 OIMO.SHAPE_SPHERE = 0x1;
 OIMO.SHAPE_BOX = 0x2;
 
-OIMO.WORLD_SCALE = 100;
-OIMO.INV_SCALE = 0.01;
+OIMO.WORLD_SCALE = 1;
+OIMO.INV_SCALE = 1;
 
 OIMO.TO_RAD = Math.PI / 180;