Difference between revisions of "B2.CircleShape:set"
From GiderosMobile
m (Text replacement - "</source" to "</syntaxhighlight") |
m (Text replacement - "<source" to "<syntaxhighlight") |
||
Line 6: | Line 6: | ||
=== Description === | === Description === | ||
Sets the center point and radius of this instance. | Sets the center point and radius of this instance. | ||
− | < | + | <syntaxhighlight lang="lua"> |
b2.CircleShape:set(centerx,centery,radius) | b2.CircleShape:set(centerx,centery,radius) | ||
</syntaxhighlight> | </syntaxhighlight> |
Latest revision as of 17: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