I am trying to get the vertices of a rectangle, but object.path is not returning any values. The docs say, “Shape objects have a path property that exposes properties of the path. The first corner is at the top-left and they go around in counter-clockwise order.”
That implies one can not only set the vertices, which DOES work, but read them. No?
local r = display.newRect(0,0, 200,100) r.x = 100 r.y = 50 r.rotation = 20 print(r.path.x1, r.path.x2, r.path.x3, r.path.x4) print(r.path.y1, r.path.y2, r.path.y3, r.path.y4)