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

19.5.5 friction

f = physics.Shape:friction()

Parameter

Type

Description

self

in physics.Shape

The input Shape

f

out number

The coefficient of friction for this Shape

Returns the friction coefficient of the shape.

Introduced in platform.apiLevel = '2.0'