Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

PhysicsMaterial2D.friction

Switch to Manual
public float friction;

Description

Coefficient of friction.

A value of zero indicates a surface with no friction while a value of 1 indicates maximum friction (eg, rubber).

See Also: PhysicMaterial.staticFriction.

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