Home

Awesome

sharpPhysics

Code is under construction, architecture and codestyle will change along with my experience, my knowledge and available ecs tech

Simple C# 2D physics engine written on top of LeoEcsLite framework just for training.
Run PhysicsDemo project to see physics in action.
Use LMB to grab objects

Requirments

Requires .NET 6 to run and build, but the most interesting bit (PhysicsLibrary project) does not use any .NET 6 (or even .NET 5) features, so it can be used in older environments like Unity.

Renderer is built on OpenTK and requires OpenGL 3.3 to render.

Project uses ecslite-easy-di dependency injection to manage common pools and shared data

Bibliography

Ian Millington [2010]. Game Physics Engine Development. Morgan Kaufmann
Christer Ericson [2005]. Real-Time Collision Detection. Morgan Kaufmann