setRestitutionCallback

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

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

Parameters

callback

The restitution callback, or null to remove. Parameters: restitutionA, materialIdA, restitutionB, materialIdB. Return restitution value.