Picophysics: A Single-File Physics Engine for Retro Consoles
Picophysics: Single file physics for games on platforms like N64, PSX, DC
Picophysics is a compact, single-file C physics engine designed for retro gaming platforms like the N64, PSX, and Dreamcast. It offers collision detection and response, including box-triangle and multiple collision shapes, with a focus on simplicity and performance. The project includes examples, tests, and tools, and is actively developed on GitLab.
A single-file physics engine for games on platforms like N64, PSX, DC.
- klodolph
Everything being static inline makes it hostile to these older systems which have limited RAM. Use of float makes it unlikely that you’d run it on the PlayStation, which has no FPU.
- iamcoder18
It's hand written and should also work on microcontrollers like ESP32s or Pi Pico 2. Have you tried anything like that yet?
The Pico in particular has enough RAM and supports floating point math.
- Attummm
Sounds interesting, but there isn't any description or readme to go by.