If any one is interested, the conversion to GB2ShapeCache-x for v 3.2 can be downloaded here:
http://www.redtgames.com/blog/gb2shapecache-x-for-cocos2d-x-v3_2/
Please feel free to make any changes and let me know.
Thanks @AndreasLoew for the great work
Thanks,
Saket
2 Likes
Thanks - this is awesome.
1 Like
ltgbau
August 18, 2014, 4:29am
#3
Hi, is there a version for chipmunk?
Send me the 2.x version, I can convert it for you!
Weāve recently updated PhysicsEditor. Including an updated version of the shape cache that works with cocos2d-x out of the box. Weāve renamed the class to PhysicsShapeCache - and it should really be easy to use.
Iāve created a github repository containing the official exporters:
The use of the PhysicsShapeCache is simple:
Load the shapes
// Load shapes
shapeCache = PhysicsShapeCache::getInstance();
shapeCache->addShapesWithFile(āshapes.plistā);
Create a sprite and attach itās body
auto sprite = Sprite::create(ābanana.pngā);
shapeCache->setBodyOnSprite(ābanana.pngā, sprite);
sprite->setPosition(pos);
addChild(sprite);
An example project can be found here:
Full tutorial is coming soon.
1 Like
Since generic-box2d-plist-cocos2d-x is now not supported officially(so Box2D official loader for PE will not work with latest cocos2d-x): GitHub - CodeAndWeb/PhysicsEditor-Loaders: Use these classes to load the plist/xml file written by PhysicsEditor
Iām looking for solution. @Meir_yanovich maybe you can help with this? Iāve found your loader GitHub - meiry/PhysicsEditor-_cocos2d-x-ver3-loader: updated the cocos2d-x PhysicsEditor loader for cocos2d-x version 3 but itās looks like outdated. Do you have the latest version? Iād really appreciate for any help. Thank you in advance.
Or current topic starter solution works well and tested? My team just needs a well tested classā¦