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

19.11.13 setFriction

self = physics.Arbiter:setFriction(friction)

Parameter

Type

Description

self

in physics.Arbiter

The input Arbiter

f

in number

Friction in the collision

self

out physics.Arbiter

The input Arbiter is returned as the output

Overrides the calculated friction of the collision.

Note

May not behave as expected for f larger than 1.0 or less than 0.

Introduced in platform.apiLevel = '2.0'