Difference between revisions of "B2.CircleShape:set"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> Sets the center point and radius of this instance.<br /> <br /> <source lang="lua"> = b2.Circle...")
 
m (Text replacement - "<source" to "<syntaxhighlight")
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 +
<languages />
 
'''Available since:''' Gideros 2011.6<br/>
 
'''Available since:''' Gideros 2011.6<br/>
 +
'''Class:''' [[Special:MyLanguage/b2.CircleShape|b2.CircleShape]]<br/>
 +
 
=== Description ===
 
=== Description ===
<br />
+
Sets the center point and radius of this instance.
Sets the center point and radius of this instance.<br />
+
<syntaxhighlight lang="lua">
<br />
+
b2.CircleShape:set(centerx,centery,radius)
<source lang="lua">
+
</syntaxhighlight>
= b2.CircleShape:set(centerxcenteryradius,)
+
 
</source>
+
=== Parameters ===
'''centerx:''' (number, optional) the x coordinate of the center ''''''<br/>
+
'''centerx''': (number, optional) the x coordinate of the center <br/>
'''centery:''' (number, optional) the y coordinate of the center ''''''<br/>
+
'''centery''': (number, optional) the y coordinate of the center <br/>
'''radius:''' (number, optional) the radius ''''''<br/>
+
'''radius''': (number, optional) the radius <br/>
 +
 
 +
{{B2.CircleShape}}

Latest revision as of 18:12, 12 July 2023


Available since: Gideros 2011.6
Class: b2.CircleShape

Description

Sets the center point and radius of this instance.

b2.CircleShape:set(centerx,centery,radius)

Parameters

centerx: (number, optional) the x coordinate of the center
centery: (number, optional) the y coordinate of the center
radius: (number, optional) the radius




LiquidFun