فهرست منبع

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;