Version: 2020.2
言語: 日本語

Cloth

class in UnityEngine

/

継承:Component

マニュアルに切り替える

説明

Cloth クラスは、物理ベースの布のシミュレーションに対するインターフェースを提供します。

変数

bendingStiffness布の曲げ剛性。
capsuleCollidersこのClothインスタンスが衝突するCapsuleCollidersの配列。
clothSolverFrequency一秒間ごとの布のソルバー反復の回数。
coefficients布がスキンメッシュとどのように相互作用するかを設定するために使う、布のスキン係数を設定します。
collisionMassScale衝突パーティクルの量をどの程度増加させるか。
damping布の動きの減衰
enableContinuousCollision衝突判定の安定性を向上させるために継続的な衝突判定を有効にする。
enabled布の有効/無効を設定します。
externalAccelerationクロスに適用される一定の外部加速度。
frictionキャラクターとぶつかったときの布の摩擦係数。
normals現在の布オブジェクトの法線。
randomAccelerationランダムで外部の加速度が布に適用されます。
selfCollisionDistanceMinimum distance at which two cloth particles repel each other (default: 0.0).
selfCollisionStiffnessSelf-collision stiffness defines how strong the separating impulse should be for colliding particles.
sleepThreshold布のスリープのしきい値。
sphereCollidersこのClothインスタンスが衝突する ClothSphereColliderPairs の配列。
stiffnessFrequencySets the stiffness frequency parameter.
stretchingStiffness布の伸縮率。
useGravity重力が布シミュレーションに影響するかどうか。
useTethersテザーアンカーを使用します。
useVirtualParticles衝突判定の安定性向上のために、ひとつの三角形ごとにひとつの仮想パーティクルを追加する。
vertices布オブジェクトの現在の頂点位置。
worldAccelerationScaleワールド座標での加速がどのくらい影響をもたらすかの設定を行います。
worldVelocityScaleワールド座標での動きがどのくらい影響をもたらすかの設定を行います。

Public 関数

ClearTransformMotion布のシミュレーションに影響を及ぼすことから Pending 状態の Transform の変更をクリアします。
GetSelfAndInterCollisionIndicesGet list of particles to be used for self and inter collision.
GetVirtualParticleIndicesGet list of indices to be used when generating virtual particles.
GetVirtualParticleWeightsGet weights to be used when generating virtual particles for cloth.
SetEnabledFading布のシミュレーションをフェードイン/フェードアウトします。
SetSelfAndInterCollisionIndicesThis allows you to set the cloth indices used for self and inter collision.
SetVirtualParticleIndicesSet indices to use when generating virtual particles.
SetVirtualParticleWeightsSets weights to be used when generating virtual particles for cloth.

継承メンバー

変数

gameObjectこのコンポーネントはゲームオブジェクトにアタッチされます。コンポーネントはいつもゲームオブジェクトにアタッチされています。
tagゲームオブジェクトのタグ
transformThe Transform attached to this GameObject.
hideFlagsShould the object be hidden, saved with the Scene or modifiable by the user?
nameオブジェクト名

Public 関数

BroadcastMessageゲームオブジェクトまたは子オブジェクトにあるすべての MonoBehaviour を継承したクラスにある methodName 名のメソッドを呼び出します。
CompareTagこのゲームオブジェクトは tag とタグ付けされているかどうか
GetComponentReturns the component of Type type if the GameObject has one attached, null if it doesn't. Will also return disabled components.
GetComponentInChildren GameObject や深さ優先探索を活用して、親子関係にある子オブジェクトから type のタイプのコンポーネントを取得します。
GetComponentInParent GameObject や深さ優先探索を活用して、親子関係にある親オブジェクトから type のタイプのコンポーネントを取得します。
GetComponents GameObject から type のタイプのコンポーネントを「すべて」取得します。
GetComponentsInChildrenReturns all components of Type type in the GameObject or any of its children. Works recursively.
GetComponentsInParent GameObject や深さ優先探索を活用して、親子関係にある親オブジェクトから type のタイプのコンポーネントを「すべて」取得します。
SendMessageゲームオブジェクトにアタッチされているすべての MonoBehaviour にある methodName と名付けたメソッドを呼び出します
SendMessageUpwardsゲームオブジェクトと親(の親、さらに親 ... )にアタッチされているすべての MonoBehaviour にある methodName と名付けたメソッドを呼び出します
TryGetComponentGets the component of the specified type, if it exists.
GetInstanceIDオブジェクトのインスタンス ID を返します
ToStringReturns the name of the object.

Static 関数

DestroyRemoves a GameObject, component or asset.
DestroyImmediateDestroys the object obj immediately. You are strongly recommended to use Destroy instead.
DontDestroyOnLoadDo not destroy the target Object when loading a new Scene.
FindObjectOfTypeタイプ type から最初に見つけたアクティブのオブジェクトを返します
FindObjectsOfTypeGets a list of all loaded objects of Type type.
Instantiateoriginal のオブジェクトをクローンします

Operator

boolオブジェクトが存在するかどうか
operator !=二つのオブジェクトが異なるオブジェクトを参照しているか比較します
operator ==2つのオブジェクト参照が同じオブジェクトを参照しているか比較します。