Hi,
many of you might already know me from TexturePacker - now I have a new high quality tool for you:
Stop copy and paste!
Stop worrying about ccw or cw!
Stop worrying about convex or not.
Features:
- Automated shape tracing(!!!)
- Automated handling of convex polygons(!!!)
- Automated handling of polygon oriantation(!!!)
- Anchorpoint editor(!!!)
- Support for Box2D and Chipmunk
- plilst files for cocos2d
- box2d loader code included
- Demo
The main advantage is that you can use the exporters already shipped with PhysicsEditor or simply create your own! A flexible template engine lets you export what ever text format you need.
The download includes a fully working demo.
How to use it in your code? Forget about copy and pasting vertex lists!
This is for box2d users:
Load the plist file
[[GB2ShapeCache sharedShapeCache] addShapesWithFile:@"shapedefs.plist"];
Add the polygons to a shape
[[GB2ShapeCache sharedShapeCache] addFixturesToBody:body
forShapeName:@"shapename"];
Set the anchor point:
[sprite setAnchorPoint:[[GB2ShapeCache sharedShapeCache]
anchorPointForShape:@"shapename"]];
Done!
Since I am not so familiar with chipmunk I could use some help in setting up a loader in the best way for it.
Cheers
Andreas
