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;
最后修改:2011年3月27日 Sunday 18:29

本脚本参考基于Unity 3.4.1f5

英文部分版权属©Unity公司所有,中文部分© Unity圣典 版权所有,未经许可,严禁转载 。