Difference between revisions of "B2.PolygonShape"

From GiderosMobile
(Created page with "__NOTOC__ '''Supported platforms:''' <br/> '''Available since:''' Gideros 2011.6<br/> === Description === <br /> A convex polygon. It is assumed that the interior of the polyg...")
 
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Supported platforms:''' <br/>
+
'''Supported platforms:''' android, ios, mac, pc<br/>
 
'''Available since:''' Gideros 2011.6<br/>
 
'''Available since:''' Gideros 2011.6<br/>
 
=== Description ===
 
=== Description ===
Line 6: Line 6:
 
A convex polygon. It is assumed that the interior of the polygon is to the left of each edge.<br />
 
A convex polygon. It is assumed that the interior of the polygon is to the left of each edge.<br />
 
<br />
 
<br />
 +
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 
{|-
 
{|-
 
| style="width: 50%;"|
 
| style="width: 50%;"|
 
=== Methods ===
 
=== Methods ===
 +
[[b2.PolygonShape.new]] - <br/>
 +
[[b2.PolygonShape:set]] - sets vertices<br/>
 +
[[b2.PolygonShape:setAsBox]] - set vertices to represent an oriented box<br/>
 
| style="width: 50%;"|
 
| style="width: 50%;"|
 
=== Events ===
 
=== Events ===
 
=== Constants ===
 
=== Constants ===
 
|}
 
|}

Revision as of 09:56, 23 August 2018

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

Description


A convex polygon. It is assumed that the interior of the polygon is to the left of each edge.





Methods

b2.PolygonShape.new -
b2.PolygonShape:set - sets vertices
b2.PolygonShape:setAsBox - set vertices to represent an oriented box

Events

Constants