Using Physics Editor generated plist with Unity3d 4.3 (2D)
So recently I was porting one of my game to Unity3d using 4.3 version. Game was previously developed for iOS in cocos2d + Box2d. There are around 20 levels and every level have 4 to 9 objects blah blah a long story of game play :p Coming to point so every object have an irregular shape (almost) thatâs why all the bodies was made in âPhysics Editorâ for perfect collision. So creating all bodies with perfect polygon again will take long time in unity so I created an editor extension to use the physic editor generated plist in Unity3d (2d platform).
So Iâm sharing May be it will help you too. Note: a lot of improvement needs in code. But itâs in working condition. Feel free to use and change :)
Todo: adding anchor point support currently only for centre anchor point.
Screen shots:
Usage:Download and import the package and drag and drop "Polygon.cs" file from Scripts folder on the object and drop the generated plist on "Plist File" and you will get all the bodies in drop down.
Generating bodies using Physics EditorÂ
remember to set anchor point to 0.5,05 and publish for cocos2d.
Download













