Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

var friction: float;
float friction;
friction as 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.