19.7.3
points
points = physics.PolyShape:points()
Parameter |
Type |
Description |
---|---|---|
self |
in physics.PolyShape |
The input PolyShape |
points |
out {physics.Vect} |
A table of vertices that
define the boundary of the polygon. The vertices are translated to the
polygon’s current |
Returns a copy of the table of vertices defining the bounds of the polygon. The vertices are translated to the polygon’s current world coordinates.
Note
When a PolyShape has not been added to a Space, it has no world coordinates. In this case, each vertex returned by physics.PolyShape:points() will have x and y equal to 0.
Introduced in platform.apiLevel = '2.0'