B2.PolygonShape:set: Difference between revisions
From GiderosMobile
Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> Copy vertices. This assumes the vertices define a convex polygon. It is assumed that the exteri..." |
No edit summary |
||
| Line 6: | Line 6: | ||
<br /> | <br /> | ||
<source lang="lua"> | <source lang="lua"> | ||
b2.PolygonShape:set(vertices) | |||
</source> | </source> | ||
'''vertices | '''vertices''': (any) A list of numbers that contains the x, y coordinates of the vertices sequentially ''''''<br/> | ||
Revision as of 09:21, 23 August 2018
Available since: Gideros 2011.6
Description
Copy vertices. This assumes the vertices define a convex polygon. It is assumed that the exterior is the the right of each edge.
b2.PolygonShape:set(vertices)
'vertices: (any) A list of numbers that contains the x, y coordinates of the vertices sequentially '