B2.PolygonShape:set

From GiderosMobile
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


Available since: Gideros 2011.6
Class: b2.PolygonShape

Description

Sets the 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)

Parameters

vertices: (any) a list of numbers that contains the x, y coordinates of the vertices sequentially

Examples

local polygonShape = b2.PolygonShape.new()
polygonShape:set(1,4, 2,6, 3,7)




LiquidFun