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

スクリプト言語

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

ClothSkinningCoefficient.collisionSphereDistance

Suggest a change

Success!

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

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public var collisionSphereDistance: float;
public float collisionSphereDistance;
public collisionSphereDistance as float

Description

侵入できない球体の距離を定義します。これはアニメーションしている布の衝突を可能にします。

2つの設定(collisionSphereRadius, collisionSphereDistance)は布の頂点ごとに定義されます。 球体の中心はconstrainPositionに位置しています - constrainNormal * (collisionSphereRadius + collisionSphereDistance)と球体の半径はcollisionSphereRadius、 constrainPositionとconstrainNormalは、SkinnedMeshRendererによって生成される頂点の位置と法線です。 SkinnedClothは布の頂点がこの球体の中に入らないように作成されます。 代表的なユースケースとして、collisionSphereDistanceは0に、collisionSphereRadiusは三角形のサイズを参考に大きな値を設定します。 この設定でスキンメッシュに衝突します。 デフォルト: 0.0 範囲: 0 - 無限