B2.ChainShape:createLoop: Difference between revisions

From GiderosMobile
No edit summary
m Text replacement - "</source" to "</syntaxhighlight"
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
=== Description ===
=== Description ===
Creates a loop. This automatically adjusts connectivity.
Creates a loop. This automatically adjusts connectivity.
<source lang="lua">
<syntaxhighlight lang="lua">
b2.ChainShape:createLoop(vertices)
b2.ChainShape:createLoop(vertices)
</source>
</syntaxhighlight>


=== Parameters ===
=== Parameters ===

Latest revision as of 16:21, 12 July 2023


Available since: Gideros 2011.6
Class: b2.ChainShape

Description

Creates a loop. This automatically adjusts connectivity.

b2.ChainShape:createLoop(vertices)

Parameters

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




LiquidFun