Difference between revisions of "Shape:getRadius"

m
m
 
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 ===

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