Open Source Farseer Physics Engine (Box2D) port for Unity (WIP)

Don’t get me wrong. Physx is great, fast and reliable, but sometimes you can’t do everything with it for a physics based 2d game, and since it is closed source, you can’t extend it either (or rely on messy workarounds).
I decided to port Farseer/Box2D because I had a lot of struggle with making custom controllers and joints to work properly on Physx.

The project is on GitHub and I’m making a series of tutorials about how to use it:
Part 1 - Introduction;
Part 2 - Joints;
Part 3 - Collision filtering;
Part 4 - Collision events (soon!);
Part 5 - Controllers (soon!);

I will write more tutorials as needed (after parts 4 and 5 are done).

Some screenshots:

1 Like

Wow !!! Great Thanks.

Fantastic !!!
I like your game too (graphics and others !).

6R

http://forum.unity3d.com/threads/104312-Box2D-C-Port-Unity/page2
My unfinished port, what uses Unity Math

@syko227, well done! Thanks for sharing this…

Is this cross-platform (mobile) or desktop only?

It’s cross-platform. I didn’t test it yet on iOS, so I’m not sure about the performance.

I didn’t know that there was a port out there! That’s nice. Maybe I could merge your complete math port to it?

Thanks :slight_smile:

I was literally about to start on this!

Looks like a very solid, polished implementation. Great stuff!

I am very curious about the performance on mobile devices. Do you think this is less expensive than PhysX?

Awsome! :smile: Aldough I must say that I just couldn’t get it to do what I wanted with flash as3… Well lets hope I’m a better programmer now :wink: Would it be possible to combine this with 3d objects?

Truly awesome! Can’t wait to get my hand on this ^ ^ Thank you for your hard work!

Wow some cool stuff cropping up around here. This looks great, will definitely be keeping an eye on it!

big thank you for your work!

Is it possible to contrain cube’s rotation? (I don’t want it to rotate, only to move)
I’m a bit new to box2d concepts - sorry if the question is stupid :).

This is awesome… Thank you very much for your effort and make it available.

This deserves a bump.

Great work so far syko.

Definitely be looking at using this in the future.

Want to bring this to the top so more people can find out about it.

BUMP for awesomeness Question:

Since I’m developing a 2D game this could be a great alternative to PhysX but before switching Farseer I’d like to know if anyone has compared these 2 performance-wise.

Can anyone share their experiences? (especially on mobile devices that is)

The tutorial website is down. When will it be up again?

Peter

I am very curious about the performance on mobile devices too.

Do you think this is less expensive than PhysX?

Any 2D physics solution is infinitely faster than a 3D physics one - even when the second is low-level optimized. At least with a huge number of objects the Box2D-derived solutions wipe the floor with PhysX in terms of performance. Of course in an ideal world Unity would give us a low-level Box2D implementation, and we’ve saw they working on it in the latest Ninja camp with astounding results, but I wouldn’t count on that kicking into Unity anytime soon. No matter how many 2D users they have, the absolute majority have Unity indie (free) licenses, so 3D will keep being their priority.

Good job and thanks. You make me have many choice for making many game type :slight_smile: