Introducing VertexHelper for Box2D & Chipmunk Vertices

Posted on 26 February 2010 by Johannes Fahrenkrug. Tags: Programming iPhone Cocoa

Update: VertexHelper Pro (with Undo/Redo and the option to save and load your work) is now available on the Mac AppStore. Get VertexHelpre Pro here (iTunes Link) and you'll do a good deed to help me put bread on the table and continue developing VertexHelper. Thanks!

I found it extremely tedious to define the vertices of sprites for the Box2D or Chipmunk physics engines. Maybe I was just not using the right tool. So I wrote my own. It's called VertexHelper and it lets you graphically define vertices of sprites for Box2D and Chipmunk bodies/shapes. You can find it on github.
This video shows you what it does and how it works:



davidcann said...

This is great! Thanks!

March 17, 2010 07:21 PM

Johannes Fahrenkrug said...

Thanks for noticing that, Robustus. I'll take care of it!

March 03, 2010 04:19 PM

Robustus said...

Very appreciate that you built such an app for free.

Just to mention that you may need to do some conversions between CGRect and NSRect, CGPoint and NSPoint.

eg in your code:
-(CALayer *)hitTest:(NSPoint)aPoint

NSPointInRect(aPoint,[self bounds])

is better to use the following

NSPointInRect(aPoint,NSRectFromCGRect([self bounds]))

Nice app!! I like it a lot!!

March 03, 2010 10:12 AM

Ben said...

This is great (I just wish it had been around a couple months ago). Well done!

February 26, 2010 03:57 PM


Please keep it clean, everybody. Comments with profanity will be deleted.

blog comments powered by Disqus