B2.ChainShape:createChain: Difference between revisions
From GiderosMobile
m Text replacement - "</source" to "</syntaxhighlight" |
m Text replacement - "<source" to "<syntaxhighlight" |
||
| Line 6: | Line 6: | ||
=== Description === | === Description === | ||
Creates a chain with isolated end vertices. | Creates a chain with isolated end vertices. | ||
< | <syntaxhighlight lang="lua"> | ||
b2.ChainShape:createChain(vertices) | b2.ChainShape:createChain(vertices) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Latest revision as of 16:21, 12 July 2023
Available since: Gideros 2011.6
Class: b2.ChainShape
Description
Creates a chain with isolated end vertices.
b2.ChainShape:createChain(vertices)
Parameters
vertices: (any) a list of numbers that contains the x, y coordinates of the vertices sequentially