Physac (2016)

Physac is a 2D physics library written in pure C programming language. The engine uses a fixed time-step thread loop to simulate dynamics supported by POSIX threads.

A physics step contains the following phases: reset all physics states, get collision information, apply dynamics, collision solving and position correction. It uses a very simple struct for physic bodies with a position vector to be used in any graphics rendering API like OpenGL or DirectX.

The header file includes some tweakable define values to fit the results that the user wants with a minimal bad results. Most of those values are commented with a little explanation about their utilities.


  –   Click here to see source code.



Last updated on April, 2024