box2d - LevelHelper : destroy and recreate physics body -


using lh cocos2d , box2d

i have ball (dynamic body) goes out of screen.

i destroy , recreate it, placing in initial position.

without levelhelper, via destroybody , createbody.

how do levelhelper?

you make copy of lhsprite object of ball before destroying , later recreate ball add copied lhsprite object layer.


Comments