Page 1 of 1

Chipmunk2D on Windows Phone 7+

Posted: Sat Feb 08, 2014 2:05 pm
by DotNetGuy
I am working on an XNA/MonoGame project that is going to use 2D physics and target Windows Phone 7, Windows Phone 8 and other platforms covered by MonoGame.

Is it possible to use Chipmunk2D on WP7 and WP8?

Thank you!

PS: I am not going to use Unity.

Re: Chipmunk2D on Windows Phone 7+

Posted: Sun Feb 09, 2014 6:24 pm
by DotNetGuy
I would be interested in some tutorials on using Chipmunk2D with MonoGame as well. WP7 support is ideal, but I can probably leave without it or target multiple physics engines.

Thanks.

Re: Chipmunk2D on Windows Phone 7+

Posted: Mon Feb 10, 2014 3:33 pm
by slembcke
Well, Chipmunk is written in C and would need to be compiled as native code and accessed using PInvoke or similar. I don't think that's possible on WP7.

I know there were two developers that did a partial port of Chipmunk to WP7 for porting a game a couple years ago, but AFAIK they never released the code. It would have been a couple versions old anyway. You might be better of going with an existing, pure C# physics lib in this case.

I am curious though, why WP7? Isn't it pretty much dead at this point?

Re: Chipmunk2D on Windows Phone 7+

Posted: Mon Feb 10, 2014 5:49 pm
by DotNetGuy
Well, there must be some people who are still on WP7 but in the end it is probably not worth the effort. What about C# bindings for Unity - are they Unity-specific or can be used independently (in terms of using with WP8)?

Re: Chipmunk2D on Windows Phone 7+

Posted: Tue Feb 11, 2014 12:51 pm
by slembcke
Honestly most of the code in the Unity bindings is to make it act more like the built in physics API. It's all just PInvoke and a little bit of Mono code for doing the callbacks. It not sure how useful it would really be to you.

Re: Chipmunk2D on Windows Phone 7+

Posted: Tue Feb 11, 2014 3:42 pm
by DotNetGuy
OK, thanks!