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

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -