言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

InteractiveCloth.attachmentTearFactor

Switch to Manual
public var attachmentTearFactor: float;

Description

布が破れる前に、Rigidbodyオブジェクトが引き伸ばされるか

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. See Also: AttachToCollider 関数

	transform.GetComponent(InteractiveCloth).attachmentTearFactor = 10;