ジョイントは、指定した位置に Rigidbody2D を移動しようと試みます。
このジョイントはふたつの Rigidbody2D を一緒に接続しないだけのジョイントです。代わりにそれに接続されているひとつのボディでのみ動作します。
接続されたとき、それは指定された target の位置にボディを動かそうとします。目標を設定するとき、 Rigidbody2D に力が適用される基準の点である anchor の位置を設定できます。
ジョイントは力の限界がある構成可能なばねを使用してボディを動かします。
このジョイントの使用例はアンカーポイントを選択してマウスの下の位置にボディを移動するためにドラッグされるように Collider2D を有効にすることです。
| anchor | ジョイントにアタッチされるリジッドボディのローカル空間のアンカー |
| autoConfigureTarget | Target は自動的に計算する必要があるか |
| dampingRatio | ターゲットのばねの力の量は移動速度に比例して減少します。 |
| frequency | ターゲットのばねがターゲットの位置の周辺を振動する周波数 |
| maxForce | ターゲットジョイントのコンストレイントを維持しようとするときに発生する力の最大値。 |
| target | ジョイントがボディを移動しようとするワールド空間の位置 |
| enabled | 有効であれば更新され、無効であれば更新されません。 |
| isActiveAndEnabled | Reports whether a GameObject and its associated Behaviour is active and enabled. |
| gameObject | このコンポーネントはゲームオブジェクトにアタッチされます。コンポーネントはいつもゲームオブジェクトにアタッチされています。 |
| tag | ゲームオブジェクトのタグ |
| transform | The Transform attached to this GameObject. |
| attachedRigidbody | The Rigidbody2D attached to the Joint2D. |
| breakForce | 接続を解除するために必要な力 |
| breakTorque | 接続を解除するために必要なトルク |
| connectedBody | ジョイントの端にアタッチされた Rigidboy2D オブジェクト(すなわち Joint コンポーネントのないオブジェクト) |
| enableCollision | 接続している Rigidbody 2D と衝突する必要があるかどうか |
| reactionForce | ジョイントの反力を取得します。 |
| reactionTorque | ジョイントの反力トルクを取得します。 |
| hideFlags | Should the object be hidden, saved with the Scene or modifiable by the user? |
| name | オブジェクト名 |
| BroadcastMessage | ゲームオブジェクトまたは子オブジェクトにあるすべての MonoBehaviour を継承したクラスにある methodName 名のメソッドを呼び出します。 |
| CompareTag | Checks the GameObject's tag against the defined tag. |
| GetComponent | Returns the component of type if the GameObject has one attached. |
| GetComponentInChildren | Returns the Component of type in the GameObject or any of its children using depth first search. |
| GetComponentInParent | Returns the Component of type in the GameObject or any of its parents. |
| GetComponents | GameObject から type のタイプのコンポーネントを「すべて」取得します。 |
| GetComponentsInChildren | Returns all components of Type type in the GameObject or any of its children using depth first search. Works recursively. |
| GetComponentsInParent | GameObject や深さ優先探索を活用して、親子関係にある親オブジェクトから type のタイプのコンポーネントを「すべて」取得します。 |
| SendMessage | ゲームオブジェクトにアタッチされているすべての MonoBehaviour にある methodName と名付けたメソッドを呼び出します |
| SendMessageUpwards | ゲームオブジェクトと親(の親、さらに親 ... )にアタッチされているすべての MonoBehaviour にある methodName と名付けたメソッドを呼び出します |
| TryGetComponent | Gets the component of the specified type, if it exists. |
| GetReactionForce | 指定された timeStep で与えられるジョイントの反力を取得します。 |
| GetReactionTorque | 指定された timeStep で与えられるジョイントの反力トルクを取得します。 |
| GetInstanceID | Gets the instance ID of the object. |
| ToString | Returns the name of the object. |
| Destroy | Removes a GameObject, component or asset. |
| DestroyImmediate | Destroys the object obj immediately. You are strongly recommended to use Destroy instead. |
| DontDestroyOnLoad | Do not destroy the target Object when loading a new Scene. |
| FindObjectOfType | タイプ type から最初に見つけたアクティブのオブジェクトを返します |
| FindObjectsOfType | Gets a list of all loaded objects of Type type. |
| Instantiate | original のオブジェクトをクローンします |
| bool | オブジェクトが存在するかどうか |
| operator != | 二つのオブジェクトが異なるオブジェクトを参照しているか比較します |
| operator == | 2つのオブジェクト参照が同じオブジェクトを参照しているか比較します。 |
| OnJointBreak2D | ゲームオブジェクトにアタッチした Joint2D が壊れたときに呼び出されます。 |