{"repo":"mororo250/zphys","free":true,"listed":false,"github":"https://github.com/mororo250/zphys","clone":"git clone https://github.com/mororo250/zphys.git","description":"zig physics engine","language":"Zig","stars":27,"topics":["3d-engine","game-development","physics-engine","physics-simulation","zig","simulation"],"license":"MIT","category":"game-templates","readme_excerpt":"# 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 Status Early prototype. Expect frequent breaking changes. Features - Rigid Body Dynamics: Simulation of rigid bodies with basic motion integration. - Collision Detection: - GJK (Gilbert-Johnson-Keerthi) algorithm for convex shape collision detection. - EPA (Expanding Polytope Algorithm) for penetration depth and contact normal calculation. - Collision Manifold Generation: Contact point generation for stable stacking. - Primitive Shapes: - Box - Sphere - Constraints: - Penetration constraints solver. - Friction support. Examples The project includes several examples to demonstrate the engine's capabilities: - Basic: Simple scene with dropping bodies. - Friction: Demonstration of friction on a ramp. - Pyramid: A stacking demo showing stability. - GJK/EPA Visualizer: An interactive visualizer to step through the GJK and EPA algorithms for debugging and educational purposes. Getting Started Prerequisites: - Zig (latest stable). Install instructions: https://ziglang.org/learn/getting-started/ Build all: Run tests: Running Examples To run specific examples, use the -D flags: Basic Example: Friction Example: Pyramid Example: GJK/EPA Visualizer: Contributing Contributions are welcome while we shape the design. Please open an is","default_branch":null,"files":null,"tree":[],"storefront":"/r/mororo250","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mororo250/zphys/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}