setStaticFriction

fun setStaticFriction(staticFriction: Float)

Sets the static friction of the physics material.

Parameters

staticFriction

The static 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.