I want to create PolyShapes with PhysicsEditor .plist generated file in my Chipmunk game. I found that http://www.codeandweb.com/blog/2012/05/07/physicseditor-cocos2d-chipmunk example, but its written for iOS in ObjC.
What interests me most is that fragment of code:
// load physics data
[[GCpShapeCache sharedShapeCache] addShapesWithFile:@"shapedefs.plist"];
// create physics shape
cpBody *body = [[GCpShapeCache sharedShapeCache] createBodyWithName:name inSpace:space withData:sprite];
Do you know how to do it with JSB? I read Chipmunk.js file and Chipmunk documentation and I can’t see any fragment of code about ShapeCache or loading verts from .plist file.
Thanks in advance!