Is there an objective C version of ChipmunkDebugDraw?

Official forum for the Chipmunk2D Physics Library.
Post Reply
Mr.Jigs
Posts: 3
Joined: Tue May 01, 2012 8:03 am
Contact:

Is there an objective C version of ChipmunkDebugDraw?

Post by Mr.Jigs »

I am trying to figure out what is wrong with my setup by trying to display the shapes etc. using the debugdraw facilities. However, the ChipmunkDebugDraw.h and .m seem to be the c++ oriented code. Is similar available for the objective c version? so I can point to a ChipmunkSpace object rather then a cpSpace one?
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: Is there an objective C version of ChipmunkDebugDraw?

Post by slembcke »

Well, it's written in C so you don't need to do anything special to use it from Objective-C. ChipmunkSpace object's have a .space property that returns a cpSpace. So you just need to pass that to the debug draw function.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Mr.Jigs
Posts: 3
Joined: Tue May 01, 2012 8:03 am
Contact:

Re: Is there an objective C version of ChipmunkDebugDraw?

Post by Mr.Jigs »

I was afraid it was going to be an answer that would show my ignorance :D . Well that's what you get for trying to run before you can walk. I figured out what was wrong so that hurdle has been taken. As soon as I catch my breath I will try the debugdraw again.

Thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 36 guests