Explorar o código

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 %!s(int64=11) %!d(string=hai) anos
pai
achega
60685a2f6c
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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;