Difference between revisions of "B2.EdgeShape:set"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> Sets the two vertices of this instance.<br /> <br /> <source lang="lua"> = b2.EdgeShape:set(v1x...")
 
Line 6: Line 6:
 
<br />
 
<br />
 
<source lang="lua">
 
<source lang="lua">
= b2.EdgeShape:set(v1xv1yv2xv2y,)
+
b2.EdgeShape:set(v1x,v1y,v2x,v2y)
 
</source>
 
</source>
'''v1x:''' (number) - the x coordinate of 1st point of edge ''''''<br/>
+
'''v1x''': (number) - the x coordinate of 1st point of edge ''''''<br/>
'''v1y:''' (number) - the y coordinate of 1st point of edge ''''''<br/>
+
'''v1y''': (number) - the y coordinate of 1st point of edge ''''''<br/>
'''v2x:''' (number) - the x coordinate of 2nd point of edge ''''''<br/>
+
'''v2x''': (number) - the x coordinate of 2nd point of edge ''''''<br/>
'''v2y:''' (number) - the y coordinate of 2nd point of edge ''''''<br/>
+
'''v2y''': (number) - the y coordinate of 2nd point of edge ''''''<br/>

Revision as of 10:21, 23 August 2018

Available since: Gideros 2011.6

Description


Sets the two vertices of this instance.

 b2.EdgeShape:set(v1x,v1y,v2x,v2y)

'v1x: (number) - the x coordinate of 1st point of edge '
'v1y: (number) - the y coordinate of 1st point of edge '
'v2x: (number) - the x coordinate of 2nd point of edge '
'v2y: (number) - the y coordinate of 2nd point of edge '