InteractiveCloth.attachmentTearFactor 附加撕裂系数

var attachmentTearFactor : float


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.


参见: AttachToCollider 函数

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	void Awake() {
		transform.GetComponent<InteractiveCloth>().attachmentTearFactor = 10;
transform.GetComponent(InteractiveCloth).attachmentTearFactor = 10;
Page last updated: 2011-3-27