お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。
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侵入できない球体の距離を定義します。これはアニメーションしている布の衝突を可能にします。
2つの設定(collisionSphereRadius, collisionSphereDistance)は布の頂点ごとに定義されます。 球体の中心はconstrainPositionに位置しています - constrainNormal * (collisionSphereRadius + collisionSphereDistance)と球体の半径はcollisionSphereRadius、 constrainPositionとconstrainNormalは、SkinnedMeshRendererによって生成される頂点の位置と法線です。 SkinnedClothは布の頂点がこの球体の中に入らないように作成されます。 代表的なユースケースとして、collisionSphereDistanceは0に、collisionSphereRadiusは三角形のサイズを参考に大きな値を設定します。 この設定でスキンメッシュに衝突します。 デフォルト: 0.0 範囲: 0 - 無限