Skip to content

Repository files navigation

Nova Physics is a lightweight and easy to use 2D physics engine designed with game development in mind.

Features

  • Simple, user-friendly API
  • Portable codebase with no dependencies
  • Rigid body dynamics
  • Discrete collision detection
    • Circle shape
    • Convex polygon shape
    • Ray casting
    • Spatial queries
  • Multiple shapes per body
  • BVH-accelerated collision detection
  • Material properties (friction, restitution and density)
  • Collision filtering with masks and grouping
  • Constraints between bodies
    • Distance constraint - can also behave like spring
    • Hinge constraint
    • Spline path constraint
  • PGS Baumgarte solver algorithm
  • Great stacking stability
  • Built-in profiler
  • Optional double-precision mode
  • Various interactive demos using SDL2 & OpenGL

Building

The library uses C99 standard and depends only on the C standard library.

For further instructions see here.

Examples

Example demos are in examples directory, enable building demos option in the build system (if not already enabled).

Documentation

You can access the documentation including the API reference here.

If you are just getting started, you can use the introduction page.

Resources & References

Nova is a passion and learning project for me, and following are some of the many great resources that helped me along the way.

License

MIT © Kadir Aksoy

Nova Physics is, and always will be, free and open-source. Although I would greatly appreciate sponsorships!

Releases

Packages

Used by

Contributors

Languages