SurfaceMaterial

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

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)

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard