How would I put a cpBody into a NSMutable array so that I can go through the array and update the position of each cpBody?
Adding chipmunk object into mutable array
(6 posts) (3 voices)-
Posted 1 year ago #
-
ty mb!
Posted 1 year ago # -
True! Very True! I guess because I'm used to subclassing a CCSprite and including the cpBody and cpShape in the sprite subclass. The only issue I could see is determining which sprite belongs to which body/shape. But then again, I guess you could always use the shape->data variable...
Posted 1 year ago #
Reply
You must log in to post.