B2.ChainShape: Difference between revisions

From GiderosMobile
Created page with "__NOTOC__ '''Supported platforms:''' <br/> '''Available since:''' Gideros 2012.2.2<br/> === Description === <br /> A chain shape is a free form sequence of line segments. The..."
 
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
'''Supported platforms:''' <br/>
'''Supported platforms:''' android, ios, mac, pc<br/>
'''Available since:''' Gideros 2012.2.2<br/>
'''Available since:''' Gideros 2012.2.2<br/>
=== Description ===
=== Description ===
Line 11: Line 11:
&lt;/ul&gt;<br />
&lt;/ul&gt;<br />
<br />
<br />
 
 
 
 
 
 
 
 
{|-
{|-
| style="width: 50%;"|
| style="width: 50%;"|
=== Methods ===
=== Methods ===
[[b2.ChainShape.new]] - <br/>
[[b2.ChainShape:createChain]] - creates a chain with isolated end vertices<br/>
[[b2.ChainShape:createLoop]] - creates a loop<br/>
| style="width: 50%;"|
| style="width: 50%;"|
=== Events ===
=== Events ===
=== Constants ===
=== Constants ===
|}
|}

Revision as of 07:56, 23 August 2018

Supported platforms: android, ios, mac, pc
Available since: Gideros 2012.2.2

Description


A chain shape is a free form sequence of line segments. The chain has two-sided collision, so you can use inside
and outside collision. Therefore, you may use any winding order. Connectivity information is used to create smooth collisions.

<ul>
<li>*Note:** The chain will not collide properly if there are self-intersections.</li>
</ul>





Methods

b2.ChainShape.new -
b2.ChainShape:createChain - creates a chain with isolated end vertices
b2.ChainShape:createLoop - creates a loop

Events

Constants