Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

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

Cloth.damping

Switch to Manual
public var damping: float;

Description

Damp cloth motion.

Set this to damp the motions of a cloth instance. Must be between zero and one. Setting this to zero will disable cloth damping.

transform.GetComponent.<Cloth>().damping = 1;