You are here: Lua Scripting Resources eGuide > Lua Scripting API Reference Guide > Physics Library > radius

19.8.5 radius

r = physics.SegmentShape:radius()

Parameter

Type

Description

self

in physics.SegmentShape

The input SegmentShape

r

out number

The radius of the segment

Returns the radius of the segment.

Introduced in platform.apiLevel = '2.0'