{"repo":"marcelochaves95/kinematics","free":true,"listed":false,"github":"https://github.com/marcelochaves95/kinematics","clone":"git clone https://github.com/marcelochaves95/kinematics.git","description":"2D physics engine for games.","language":"C++","stars":21,"topics":["physics-engine","game-development"],"license":null,"category":"game-templates","readme_excerpt":"Kinematics A lightweight 2D soft-body physics engine in C++ (header-only core, C++17, no external dependencies). How it works Bodies are made of PointMasses connected by Springs . Each frame, spring forces and gravity are applied to the point masses, which are then integrated with semi-implicit Euler. Three body types are available: Type Description ------ ------------- Body Rigid body (no internal springs) SpringBody Soft body with edge and shape springs PressureBody Soft body with internal gas pressure Coordinate system Screen-space: Y increases downward . Gravity points in the +Y direction. Layout Usage (C++) Using from other languages The engine ships a stable C ABI ( src/kinematics c.h ) built into a shared library, so any host that can call C functions (Python ctypes , Lua FFI, JNI, Godot GDExtension, Rust, WebAssembly, …) can drive it through integer handles and batch read-back. See demo/ for a WebAssembly example. Build & test","default_branch":null,"files":null,"tree":[],"storefront":"/r/marcelochaves95","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/marcelochaves95/kinematics/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."}