setDynamicFriction

fun setDynamicFriction(dynamicFriction: Float)

Sets the dynamic friction of the physics material.

Parameters

dynamicFriction

The dynamic friction for the physics material, clamped to the range [0, +∞). The default value is 0.6f.

Throws

IllegalStateException

If this resource is closed or invalid.