Box2D for C#
Requirements:
- Visual Studio 2012
- swig 2.0.9
- box2d 2.2.1
Steps to build:
-
Create box2d.i file
-
Generate cs files and .cxx file
swig.exe -csharp -c++ -includeall -ignoremissing -namespace Box2DCS -outdir SWIG box2d.i
-
Build Box2D.dll from VC++
-
Build Box2DCS.dll from step 2
Notes: Comment SWIGEXPORT void SWIGSTDCALL CSharp_b2WheelJoint_GetDefinition(void * jarg1, void * jarg2) in .cxx file to ignore error linking when run step 3.