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.

InteractiveCloth.collisionResponse

Switch to Manual
public var collisionResponse: float;

Description

How much force will be applied to colliding rigidbodies?

If this is greater then zero, interaction of the cloth with colliding rigidbodies is enabled. The higher this value is, the greater the forces applied to rigidbodies are. It is recommended to start out with small values (like 0.2) for best results.

	// Make the cloth apply forces on what it touches.

transform.GetComponent(InteractiveCloth).collisionResponse = 0.2;