A minimalistic swept collision-detection library for platformer and tile based games. It works with axis-aligned rectangles and features swept collision detection and basic collision responses.
Collider is a minimalistic, pure-python collision detection library for pygame. It was designed for tile-based and platformer games where all objects can be represented as axis aligned rectangles. The collision detection was implemented using Minkowski difference and Liang-Barsky segment clipping algorithm. It uses swept collision detection in order to prevent tunnelling. Additionally, it provides basic collision responses such as "bounce", "block" and "pass". The library is currently in beta stage. Comments and feature suggestions are very welcome.
Collider Library 0.1 — 17 Mar, 2019