SurfaceMaterial

constructor(friction: Float = 0.6f, restitution: Float = 0.0f, rollingResistance: Float = 0.0f, tangentSpeed: Float = 0.0f, userMaterialId: Int = 0, customColor: UInt)

Parameters

friction

The Coulomb (dry) friction coefficient, usually in the range 0,1

restitution

The restitution (bounce) coefficient, usually in the range 0,1

rollingResistance

The rolling resistance coefficient, usually in the range 0,1

tangentSpeed

The tangent speed for conveyor belt behavior in m/s

userMaterialId

User material identifier for custom collision processing

customColor

Custom debug draw color (0 means use default)