Yann
[quote:1amv21xs]Or maybe I misunderstand what you mean by "to add origin point", if you mean that you have to setup the vertices, then yes, since the physics engine need the polygon to work.
no, no, you understood right, origin point - the center of an object, you have the special code for it. Maybe chipmunk need it to use as the center of the mass (don't really know, will check).
[quote:1amv21xs]What I would advise is to look for some tool (or maybe even make one in C2) where you can create polygons and export a json, and then load it and rebuild the polygon by looping through the points defined in the json...
this is not good solution for me. Just imagine, I have a really big levels with a lot of physics object on it, and every minute I change position of something, or level geometry. It's a pain to manage 2 level editor and syn them every minutes using json string.
And it's really sad that current level editor in c2 doesn't support such tools which useful in level design. I have to use a lot of different sprites with textures to fill all this polygons(which is also now different sprites), instead of 1-2 texture of all geometry.
[quote:1amv21xs](hm... I just realized that there's two AsJSON expression... just try one that work ... not sure I'll ever really update that plugin... if I do, one day, I might actually implement what I mentionned earlier, the property with the list of vertices... but meh... )
ok, maybe I hard designed it using sprites as vertex