1
\$\begingroup\$

What I want to have for my Monotouch 2D projects: simple collision detection and collision polygons working with UIViews

Sounds simple, isn't it? I've evaluated a lot of engines available on the market, but none of them gives me this simplicity without unnecessary overrun in my projects.

Box2D, monogame/farseer or Cocos2d seems to be good enough, but I don't really want to drag all that functionality to have 2 simple algs.

The question is: is there anything like this out there, or should I go and implement all this myslef?

\$\endgroup\$
3
  • \$\begingroup\$ How about stealing just what you need from an open source engine like monogame? \$\endgroup\$ Feb 5, 2013 at 7:31
  • \$\begingroup\$ I wouldn't use term 'steal' though :) it seems like it is the only option I have to adapt some parts of open source engines to work in the way I need... \$\endgroup\$
    – Alex D
    Feb 6, 2013 at 1:14
  • \$\begingroup\$ "Good programmers write good code. Great programmers steal great code" \$\endgroup\$ Feb 6, 2013 at 6:21

2 Answers 2

3
\$\begingroup\$

You can use Chipmunk bindings I wrote to manage UIViews collisions. I document that in this post. The bindings can be compiled with or without cocos2d. The latest version of the code is here

\$\endgroup\$
1
  • \$\begingroup\$ Thank you! that's really great article! I've never thought that it is possible and that easy to make this kinda smart labels using physics engine! \$\endgroup\$
    – Alex D
    Feb 23, 2013 at 12:17
1
\$\begingroup\$

Answering my own question: it seems to be possible to use monotouch/monogame version of Farseer Engine without monogame itself. So, couple of changes to the code and this article http://www.cocoanetics.com/2010/05/physics-101-uikit-app-with-box2d-for-gravity/ will get me to the point I have everything I need plus some extras :)

problem seems to be solved!

\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged .