So, I'm using a .json file which has a bunch of polygons, each with several vertices, that I want to use to create my b2.PolygonShape. I only see set as box and set...no add or insert or something like that.
I've got my vertices into a tables now and can loop through the polygons to create the shapes and it'd be nice to just say my_shape:set(vertex_table) but that didn't work. How can I set the table to be the vertices OR how can I loop add vertices?
Thanks in advance!
Comments
Usually guys use PhysicsEditor:
https://www.codeandweb.com/physicseditor
Example:
https://github.com/CodeAndWeb/PhysicsEditor-Gideros
"What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
“The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)