Page 1 of 1

Is there an objective C version of ChipmunkDebugDraw?

Posted: Sun May 20, 2012 8:40 am
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?

Re: Is there an objective C version of ChipmunkDebugDraw?

Posted: Sun May 20, 2012 3:57 pm
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.

Re: Is there an objective C version of ChipmunkDebugDraw?

Posted: Mon May 21, 2012 12:43 pm
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