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.attachmentTearFactor

Switch to Manual
public var attachmentTearFactor: float;

Description

How far attached rigid bodies need to be stretched, before they will tear off.

Must be larger then zero. Larger values make the cloth stretch further without tearing. Only has an affect for rigid bodies which have been attached with the tearable parameter set.

See Also: AttachToCollider function.

	transform.GetComponent(InteractiveCloth).attachmentTearFactor = 10;