Jump to content

How to create Physics Data JSON File?


yuckrocks
 Share

Recommended Posts

Hey Guys,

i was looking for a tutorial or documentation how to generate or create a shape specific Json file like in this example:
http://codepen.io/codevinsky/pen/JAoHa/
How this file was created: https://dl.dropboxusercontent.com/u/134359065/media/images/polygon/physics.json :huh: ?

 

I really don't have a clue but i like it and it makes a more preciseley collission detection possible.
So maybe one of u can help me!  :)

 

Thanks!

 

Link to comment
Share on other sites

  • 1 month later...

With this: https://www.codeandweb.com/physicseditor and the free export plugin you'll find in the phaser repo.

 

sorry for bringing this post from the cold, but this is the idea of this forum I suppose.

 

- Does this option exist only in the p2 physics system or also in the arcade?

- Also, which plugin did you mean? I haven't found anything related in the plugins repo.

 

Thanks!

Link to comment
Share on other sites

  • 1 year later...
  • 2 years later...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...