Embed 2d physics engine (box2d or chipmunk) as C++ plugin

Unity3d is great because of its editor and hot-swapping. I’ve got an SPH implementation using cocos-2d and box2d, but I want to move on to Unity because of 3d capabilities and awesome editor.

But I want a 2d iphone game with high performant advanced physics, which PhysX couldn’t achieve. C# ports of physics engines also shows very poor performance compared to C/C++ implementations.
So, is it possible to attach physics engine as a plugin written in C or C++?

Yes, it is possible. But I don’t know how good the performance will be since
Managed-to-unmanaged calls are quite processor intensive on iOS. Try to avoid calling multiple native methods per frame.