B2.CircleShape.new

From GiderosMobile
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


Available since: Gideros 2011.6
Class: b2.CircleShape

Description

Creates a new b2.CircleShape instance and optionally set its center point and radius.

If this function is called with more than 3 parameters, b2.CircleShape instance is created and its center point and radius are set. If this function is called without any paramaters, only b2.CircleShape instance is created and you should set the center point and radius with b2.CircleShape:set function.

(any), (any) = b2.CircleShape.new(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

Return values

Returns (any) A new b2.CircleShape object.
Returns (any) A new b2.CircleShape object.




LiquidFun