PhysicsMaterialResource

constructor(staticFriction: Float = 0.6f, dynamicFriction: Float = 0.6f, restitution: Float = 0.0f)

Constructs a PhysicsMaterialResource by specifying params.

Parameters

staticFriction

The static friction for physics material, which is clamped in range [0,∞). The default value is 0.6f.

dynamicFriction

The dynamic friction for physics material, which is clamped in range [0,∞). The default value is 0.6f.

restitution

The restitution for physics material, which is clamped in range 0,1. The default value is 0f.

Throws

If any error occurs during the loading process.