Why isn't there a method to get cpShape?

don’t get me wrong you can get a cp shape using cpSpacePointQueryNearest() or by cpBodyEachShape()

but that’s only as long as you don’t call theme in Scene or Layer init methods … they won’t work there trust me i checked

i think the reason why they don’t work in init methods is because during the init method call cpSpaceStep() hasn’t been called

and apparently they only work if cpSpaceStep() gets called at least once. and cpSpaceStep() starts getting called only after the update loop gets called at least once.

so in other words they only work if they are called in the update loop

so if you ever needed a cp shape for some physics body you can only get it in the update method which gets called after every thing is initialized

and if you ever needed it in the init method then you are simply out of luck!!

it’s either that or you have to make your own custom class that keeps a copy of cp shape once created

but that seems a whole lot of work just to get a cp shape???

this is very very stupid and i don’t know why no one ever thought about this?

there should’ve been a way to keep a copy of cp shape once created so it can be easily retrieved later

PS: if anyone has a better solution on how to get a cp shaped please share.