Share My Creation iSpriteKit Physic Body Creator (B4J)

hi

i am working on a new b4i game that will use iSpritekit and i build a Physicbody creator to create polygon bodies for my game. its much simpler like this then creating it point by point in your code.

i know that i should not create concave polygons with Spritekit but it looks like it is working. With box2d it is not possible unless you create few convex polygons and connect them or a chainbody.

iSpritekit also has a Chainbody (=BodyWithEdgeChainFromPath) BUT i found out that those bodies cannot be dynamic bodies so i can only create them as static bodies (really stupid)

so i had to use a polygon body because it needs to be dynamic (effected by gravity)

have a look and tell what you think :)

 

Attachments

  • sc1.png
    sc1.png
    56.7 KB · Views: 2,947
Top