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

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 лет назад
Родитель
Сommit
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;