fphysics is header-only physics library for raylib, consisting of approximately 400 lines of code.
This library is designed for developers who want an easy-to-use physics solution for their simple projects like Asteroids clone and other simple 2D games.
This library depends on Raylib 5.5. Please ensure you have the correct version installed before using this library.
- Rigid Bodies
- Polygons Collision
- Friction and resistance
- Anchors Support
- Joints
- Spatial Hashing
- Bounding Boxes
- Ray Intersections
This implementation is based on the PixelPhysics awesome tutorial. His JavaScript implementation available here.