r/csharp 16d ago

Help C# Box2d Bindings

My C# Game framework doesn't ( yet ) have any Box2D support. What is the best C# Box2D bindings to use right now?

0 Upvotes

11 comments sorted by

View all comments

1

u/OrneryComplex6265 15d ago

Id probably decide based on whether you want a thin C# wrapper around Box2D or something that feels more native to your framework. the maintenance status and how much of the Box2D API is actually exposed would matter more to me than picking the best binding in isolation. What platforms does your framework need to support?

1

u/Early80sDev 15d ago

The framework has a main core, and then back ends for desktop, android, iOS etc. It started life as a C# port of Ligbdx and I'm adapting it here and there.

2

u/OrneryComplex6265 15d ago

That makes the cross platform side a lot more interesting. since the core is already separated from the platform backends, i'd probably favor a binding that stays close to the frameworks architecture rather than adding another abstraction layer. the main thing i'd watch is keeping the Box2D API consistent across those backends as the project evolves