can we get cpShape from cpBody
thanks in advance
A fast, easy to use, free, and community supported 2D game engine
can we get cpShape from cpBody
thanks in advance
cpBody has a data field, so when you create your body and shape just stuff the shape in there:
body->data = shape;it works. thanks @mobilebros
You must log in to post.