19.7.4
vert
v = physics.PolyShape:vert(n)
Parameter |
Type |
Description |
---|---|---|
self |
in physics.PolyShape |
The input PolyShape |
n |
in number |
Index of requested vertex inside the table of vertexes de- scribing the polygon |
v |
out physics.Vect |
The nth vertex of the polygon. The coordinates of the vector are relative to the shape’s Body |
Returns vertex number n of the table of vertices defining the bounds of the polygon. If the shape is static, then the vertex values are in world coordinates, otherwise the vertex coordiates are relative to the shape’s body. Returns nil if n is less than 1 or greater than the number of vertices in the polygon.
Introduced in platform.apiLevel = '2.0'