How far cloth vertices need to be stretched, before the cloth will tear.
// Simulate a really thin/aged and fragile cloth that will tear with anything transform.GetComponent(InteractiveCloth).tearFactor = 0.1;
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void Example() { transform.GetComponent<InteractiveCloth>().tearFactor = 0.1F; } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def Example() as void: transform.GetComponent[of InteractiveCloth]().tearFactor = 0.1F