物理マテリアル 2D
固定距離 ジョイント 2D

2Dバネ ジョイント

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

Spring Joint 2D コンポーネントにより二つの Sprite オブジェクトがバネでつながったような物理挙動に制御されます。スプリングは二つのオブジェクトの軸に沿って力を加えて,その間の距離を一定に保ちます。

プロパティ: 特徴:
Collide Connected つながった二つのオブジェクトが互いに衝突できるか
Connected Rigidbody ジョイントの接続先の Rigidbody2D オブジェクト。null の場合,スプリングの端は固定
Anchor スプリングがアタッチされた端のローカル座標
Connected Anchor スプリングの端がアタッチされた他方のオブジェクトのローカル座標
Distance 二つのオブジェクト間でバネが保持すべき距離
Damping Ratio バネの振動に対する減衰率
Frequency Rigidoby 同士が保持すべき距離へ向かう頻度(周期ごとの秒数)

詳細

バネでつながったオブジェクトは両方とも Rigidbody 2D コンポーネントをアタッチする必要があります(あるいは,バネの他方の端を固定するには Connected Rigidbody を null にします)。バネがオブジェクト間で力を適用するとき,一定距離のさらに先までを往復する振動を繰り返します。 Damping パラメータにより振動の減衰率を決定し,オブジェクトをいずれ停止させます。 Frequency は一定距離の端を振動する周期であり,大きい値であるほど硬くて動きの遅いバネになります。

物理マテリアル 2D
固定距離 ジョイント 2D