소스 검색

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;