Difference between revisions of "B2.EdgeShape:set"

From GiderosMobile
m (Text replacement - "</source" to "</syntaxhighlight")
Line 8: Line 8:
 
<source lang="lua">
 
<source lang="lua">
 
b2.EdgeShape:set(v1x,v1y,v2x,v2y)
 
b2.EdgeShape:set(v1x,v1y,v2x,v2y)
</source>
+
</syntaxhighlight>
  
 
=== Parameters ===
 
=== Parameters ===

Revision as of 16:33, 12 July 2023


Available since: Gideros 2011.6
Class: b2.EdgeShape

Description

Sets the two vertices of this instance. <source lang="lua"> b2.EdgeShape:set(v1x,v1y,v2x,v2y) </syntaxhighlight>

Parameters

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




LiquidFun