瀏覽代碼

Reduced physic steps resolution

pull/129/merge
raysan5 9 年之前
父節點
當前提交
e2cfc6b838
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/physac.h

+ 1
- 1
src/physac.h 查看文件

@ -190,7 +190,7 @@ PHYSACDEF Rectangle TransformToRectangle(Transform transform);
// Defines and Macros // Defines and Macros
//---------------------------------------------------------------------------------- //----------------------------------------------------------------------------------
#define MAX_PHYSIC_BODIES 256 // Maximum available physic bodies slots in bodies pool #define MAX_PHYSIC_BODIES 256 // Maximum available physic bodies slots in bodies pool
#define PHYSICS_STEPS 450 // Physics update steps number (divided calculations in steps per frame) to get more accurately collisions detections
#define PHYSICS_STEPS 64 // Physics update steps per frame for improved collision-detection
#define PHYSICS_ACCURACY 0.0001f // Velocity subtract operations round filter (friction) #define PHYSICS_ACCURACY 0.0001f // Velocity subtract operations round filter (friction)
#define PHYSICS_ERRORPERCENT 0.001f // Collision resolve position fix #define PHYSICS_ERRORPERCENT 0.001f // Collision resolve position fix

Loading…
取消
儲存