.NET wrapper

I'm presently looking for a 2D physics library to use for Darwinbots, an artificial life simulator strongly based in a physically simulated environment. The version I'm working on right now is in C#, so I need a .NET compatible physics engine obviously.

I'd like to pursue Box2D for the physics. I have experience writing .NET wrappers for C++ libraries. Basically it's much simpler than porting, and is less likely to not work with new library releases. It just involves linking .NET classes to the C++ versions. Does a wrapper exist presently (I'm guessing no), and if I wrote one, what is the possibility of it getting incorporated in to the core Box2D library? I'm not a fan of spending this much effort on a wrapper if it's only going to be for my personal project, and I don't really want to be an admin for a new project.
I would be happy to include a .NET wrapper in the Contrib folder.
Excellent. Then I suppose I'll get started right away.
FYI, there are a couple C# engines related to Box2D_Lite:

http://www.codeplex.com/FarseerPhysics

http://physics2d.googlepages.com/home
Okay, I've got the bridge test from the test bed simulating in C#. Still quite a bit of work to do, but I estimate I'm about 70% done. Another week at the latest and I think I'll be finished with a working copy.

The C# TestBed runs on Tao's OpenGL controls. Would it be better to include the Tao DLL's in a dependency folder (I'd have to check if that's compatible with the Tao licensing), or include a note that the .NET test bed need's to link against Tao, and require the user to download the library?

Last, how do I submit the thing when I'm done? is it possible for me to get SVN access? I have a source forge account under the s/n Numsgil. Or should I maybe include the thing as an attachment, and leave it to you to integrate it?
An SVN patch as an attachment would be great.
Attached is a patch against the SVN head. The TestBed.net will need Tao, which I didn't include (mostly for size considerations than anything else).

There are still some things I need to do to it, issues with memory management mostly. And some "new" public interface methods that I haven't wrapped yet. But it's usable at the moment, as you can see from the TestBed.Net running the bridge demo. (None of the controls are synced up yet, either).

I'd like to apply this midway patch. Mostly so that if something explodes on my computer, the work isn't lost. I'd also like any feedback. Ideally I don't think I want to be the one to maintain it against future releases, so it needs to make sense to you, I think.
I'm having some problems with the pyramid stacking test. I've got it running in the C# test bed, but it tends to fall over. Even pyramids of ~10 meters are unstable. Which is extremely weird, obviously, because I'm running the same core engine that the regular test bed uses, and it runs just fine. I'm doing 60 Hz and 10 iterations, with Position Correction and Warm Starting on.

The only things I haven't really implemented yet are the listeners. Is there something in the listeners for the test bed that solve the pyramid instability? I'm a little unsettled, because I think this might be a serious bug in my wrapper code, and finding it will probably be a lot of work.
I applied the patch. I didn't patch the sln file since many people won't have C# installed.

I suggest trying to simulate a small vertical stack in pure C++ and C# and see what the differences are.
Since there is now a full port to C#, I will be removing this wrapper in the next release.

Here is the native C# port of Box2D:
http://code.google.com/p/box2dx/

Original thread: https://box2d.org/forum/viewtopic.php?t=410