From the API :
Polygon bodies
General polygonal bodies that don’t fall into the above two special cases are generated with a “shape” parameter, which is used to pass a Lua table of (x,y) coordinate points that outline the collision boundaries. These coordinates are specified relative to the display object: by default, Corona sets the origin of a display object at the center of the corresponding image file (or vector object).
For example, to define a rectangular shape 20 pixels high and 40 pixels wide, with its origin at its center, the following shape definition would be used:
squareShape = { -20,-10, 20,-10, 20,10, -20,10 }
what are the values contained in the square shape ? x, y, w, h …??
If someone would post this up it would be most helpful, it really should be in the api also [import]uid: 6981 topic_id: 4768 reply_id: 304768[/import]
[import]uid: 6981 topic_id: 4768 reply_id: 15291[/import]