setFrictionCallback

expect fun setFrictionCallback(callback: (Float, Int, Float, Int) -> Float?)

Set a custom friction callback for computing friction between two surfaces.

Parameters

callback

The friction callback, or null to remove. Parameters: frictionA, materialIdA, frictionB, materialIdB. Return friction value.