お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Close布の厚さ
これは任意の布の頂点と他のコライダー(またはselfCollisionが有効の布の頂点)との距離を保つためのものです。 この距離よりもオブジェクトとの距離が近いと布と衝突します。もしこの値が小さすぎる場合、布の表面とオブジェクトのエッジが交差するように見えるかもしれません。 値が高すぎる場合は、布の表面と衝突しているオブジェクト、 またはselfCollisitonが有効の時で布の剛性モーションとで、間の距離が目立ってしまいます。 0よりも大きくなくてはいけません。
transform.GetComponent(Cloth).thickness = 0.2;
using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { void Example() { transform.GetComponent<Cloth>().thickness = 0.2F; } }
import UnityEngine import System.Collections public class ExampleClass(MonoBehaviour): def Example() as void: transform.GetComponent[of Cloth]().thickness = 0.2F