Physics Body Editor

18
Feb
2013

UPDATE (4th March, 2013): NOW YOU CAN ALSO DRAW A CIRCLE!

Recently I came across this amazing software known as Physics Body Editor. This really eases the pain which we are used to have which drawing a polygon in a Box2dWeb world. You got to check it out.

Below is the form in which if you upload the file generated on saving the project on box2d-editor will generate the code to make that polygon in Box2dWeb world.

What are the things to remember?







By administrator at 01:02:10 PM 9 Comment(s)

Comments

Thanks man, your tutorials are amazing, really helped me lot. I just had one query, can v develop joints in this physics editor??

By jscripter on 19 Feb, 2013 at 02:31:59 PM

This is fantastic!

By Evertith on 19 Feb, 2013 at 02:47:57 PM

@jscripter No. I don't think we can do that. It isn't there on the home page of the software.

By administrator on 19 Feb, 2013 at 04:38:58 PM

Thts fine, still a great editor.

Hey will the above upload work and give me javascript code if I upload a json file created in R.U.B.E???

By jscripter on 20 Feb, 2013 at 11:11:17 AM

@jscripter: unfortunately NO. I've never used R.U.B.E. so it doesn't work for it.

By administrator on 20 Feb, 2013 at 11:59:16 AM

Thanks for that. It's really helpful however how can I flip the body by x-axis?

By figo on 17 Dec, 2013 at 09:04:28 PM

OK, I have done it. Here is the code, you can implement it to the script:
function flipY(shape){
for(var i=0;i {
shape.GetVertices()[i].y *= -1;
}
var revert : Array = shape.GetVertices();
revert.reverse();
shape.SetAsArray(revert);
return shape;
}

By figoFago on 17 Dec, 2013 at 09:40:37 PM

http://codingowl.com/readblog.php?blogid=149%27 secure it dump

By PHC on 26 Mar, 2014 at 03:08:13 PM

@PHC what?

By administrator on 26 Mar, 2014 at 03:57:06 PM

Add a Comment

Please enter the email address.Invalid format. (Won't be Displayed)
Notify me of followup comments
Enter the displayed Code: captcha