InteractiveCloth.attachmentTearFactor 附加撕裂系数

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.

该值必须大于0。较大的值使布料拉伸不用被撕裂。只影响已附加的刚体带有撕裂参数设置。

参见: 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