mororo250/zphys
zig physics engine
1e257d1738b4ee25fe76ea1b1bd8b5ea2bf639c4# zphys
A simple, work-in-progress physics engine written in Zig.
This repository is currently experimental. APIs, structure, and features will likely change as the design evolves.
https://github.com/user-attachments/assets/88634804-fb94-4cdd-8287-baaeb293ad7d
Early prototype. Expect frequent breaking changes.
The project includes several examples to demonstrate the engine's capabilities:
Prerequisites:
Build all:
zig build
Run tests:
zig build test
To run specific examples, use the -D flags:
Basic Example:
zig build run -Dbasic
Friction Example:
zig build run -Dfriction
Pyramid Example:
zig build run -Dpyramid
GJK/EPA Visualizer:
zig build run -Dvisualizer
Contributions are welcome while we shape the design. Please open an issue or draft PR to discuss ideas and direction first.
This project is licensed under the MIT License - see the LICENSE file for details.