>>107156835
Haven't used it myself, but I heard good things about Jolt. It's written in C++ has interfaces bindings for C.
https://github.com/jrouwe/JoltPhysics?tab=readme-ov-file#bindings-for-other-languages
It's quite the big package, but physics libraries usually need to cover lots of things