Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
box2d polygonshape - adding one vertex at a time — Gideros Forum

box2d polygonshape - adding one vertex at a time

tpropertproper Member
edited January 2019 in General questions
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!


Sign In or Register to comment.