Surface Material
data class SurfaceMaterial(val friction: Float = 0.6f, val restitution: Float = 0.0f, val rollingResistance: Float = 0.0f, val tangentSpeed: Float = 0.0f, val userMaterialId: Int = 0, val customColor: UInt)
Surface material properties for shapes. Controls friction, restitution, and other surface interaction parameters.
Parameters
friction
The Coulomb (dry) friction coefficient, usually in the range 0,1
restitution
The restitution (bounce) coefficient, usually in the range 0,1
rolling Resistance
The rolling resistance coefficient, usually in the range 0,1
tangent Speed
The tangent speed for conveyor belt behavior in m/s
user Material Id
User material identifier for custom collision processing
custom Color
Custom debug draw color (0 means use default)