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.

PhysicMaterial.staticFriction

Switch to Manual
public float staticFriction;

Description

The friction coefficient used when an object is lying on a surface.

Must be greater than or equal to zero. Natural materials will usually have a friction coefficient between 0 (no friction at all, like slippy ice) and 1 (full friction, like rubber). Values larger then 1 are possible, and may be realistic for sticky materials.

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