PhysicsMaterial2D.friction

public float friction;

Description

Coefficient of friction.

Friction is used to control how a collision response reduces velocity. A value of zero indicates no friction at all while higher values produce increasing friction.

Note: Both Static and Dynamic friction are supported, and this value applies to both types.


Did you find this page useful? Please give it a rating: