Difference between revisions of "Shape:getRadius"

m (Removed space in empty argument list)
m
 
(One intermediate revision by one other user not shown)
Line 7: Line 7:
 
From the Box2D manual:
 
From the Box2D manual:
 
<blockquote>
 
<blockquote>
Polygons inherit a radius from [Shape].  The radius creates a skin around the polygon. The skin is used in stacking scenarios to keep polygons slightly separated.  This allows continuous collision to work against the core polygon.
+
Polygons inherit a radius from [[Shape]].  The radius creates a skin around the polygon. The skin is used in stacking scenarios to keep polygons slightly separated.  This allows continuous collision to work against the core polygon.
 
</blockquote>
 
</blockquote>
 
=== Arguments ===
 
=== Arguments ===
 
None.
 
None.
 
=== Returns ===
 
=== Returns ===
{{param|number|radius|The radius of the shape}}
+
{{param|number|radius|The radius of the shape.}}
 
== See Also ==
 
== See Also ==
 
* [[parent::Shape]]
 
* [[parent::Shape]]

Latest revision as of 04:42, 12 October 2016

Gets the radius of the shape.

Function

Synopsis

radius = Shape:getRadius()

From the Box2D manual:

Polygons inherit a radius from Shape. The radius creates a skin around the polygon. The skin is used in stacking scenarios to keep polygons slightly separated. This allows continuous collision to work against the core polygon.

Arguments

None.

Returns

number radius
The radius of the shape.

See Also


Other Languages