Version: 2019.2

ClothSphereColliderPair

struct in UnityEngine

マニュアルに切り替える

説明

SphereColliders のペアは Cloth オブジェクトが衝突する形状を定義するために使用されます。

lothSphereColliderPair はひとつの有効な SphereCollider インスタンス ( ふたつ目のものが null ) かふたつの SphereColliders のペアのどちらかを含むことができます。前者の場合、ClothSphereColliderPair は Cloth が衝突するひとつの SphereCollider を表します。後者の場合、それはふたつのスフィアで構成され、コーンが円錐カプセル形を表し、はそのふたつをつなげています。円錐カプセル形はキャラクターの手足のモデリングするのに役立ちます。

Select the cloth object to see a visualization of Cloth colliders shapes in the Scene view.

変数

firstClothSphereColliderPair の最初の SphereCollider
secondClothSphereColliderPair の第 2 の SphereCollider

コンストラクタ

ClothSphereColliderPairClothSphereColliderPair を作成します。ひとつの SphereCollider が指定されている場合のみ、ClothSphereColliderPair は単純なスフィアを定義します。ふたつの SphereColliders が指定されている場合、ClothSphereColliderPair はふたつのスフィアで構成され、そのふたつをつなげる円錐カプセル形を定義します。