Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

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

PhysicsMaterial2D.friction

public var friction: float;

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.