HingeJoint は二つの Rigidbody をグルーピングし、ヒンジで接合されているように動作を制限します。
ドアなどに最適ですが、チェーンなどモデリングする際にも利用できます。
The HingeJoint has a motor which can be used to make the hinge spin around the joints axis.
A spring which attempts to reach for a target angle by spinning around the joints axis.
And a limit which constrains the joint angle.
angle | 元の位置からの相対的な今の角度(読み取り専用) |
limits | ヒンジジョイントの回転角度 (単位は度) の限界値 |
motor | モーター( Motor )により角度/秒が設定された速度となるように力を加えます。 |
spring | スプリング( Spring )はスプリングやダンパー(スプリングの減少)の力によりターゲット角度に到達しようとします。 |
useLimits | ジョイントの制限 limits を有効にする。デフォルトは無効。 |
useMotor | ジョイントのモーター motor を有効にします。デフォルトは無効です。 |
useSpring | ジョイントのスプリング (spring) を有効にします。デフォルトは無効。 |
velocity | 秒単位の Joint オブジェクトの角速度 (読み取り専用) |
gameObject | このコンポーネントはゲームオブジェクトにアタッチされます。コンポーネントはいつもゲームオブジェクトにアタッチされています。 |
tag | ゲームオブジェクトのタグ |
transform | The Transform attached to this GameObject. |
anchor | 関節の動きを制限させるアンカーのローカル座標 |
autoConfigureConnectedAnchor | 自動的に connectedAnchor を計算すべきか |
axis | 身体が制限される中心となる軸 |
breakForce | 接続を解除するために必要な力 |
breakTorque | The torque that needs to be applied for this joint to break. To be able to break, a joint must be _Locked_ or _Limited_ on the axis of rotation where the torque is being applied. This means that some joints cannot break, such as an unconstrained Configurable Joint. |
connectedAnchor | 接続された Rigidbody に相対的なアンカーの位置 |
connectedArticulationBody | A reference to an articulation body this joint connects to. |
connectedBody | 別の rigidbody オブジェクトの参照 |
connectedMassScale | The scale to apply to the inverse mass and inertia tensor of the connected body prior to solving the constraints. |
currentForce | The force applied by the solver to satisfy all constraints. |
currentTorque | The torque applied by the solver to satisfy all constraints. |
enableCollision | ジョイントで接続したボディ同士の衝突を有効にします |
enablePreprocessing | このジョイントのために前処理するトグル |
massScale | The scale to apply to the inverse mass and inertia tensor of the body prior to solving the constraints. |
hideFlags | Should the object be hidden, saved with the Scene or modifiable by the user? |
name | オブジェクト名 |
BroadcastMessage | ゲームオブジェクトまたは子オブジェクトにあるすべての MonoBehaviour を継承したクラスにある methodName 名のメソッドを呼び出します。 |
CompareTag | このゲームオブジェクトは tag とタグ付けされているかどうか |
GetComponent | Returns 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 のタイプのコンポーネントを「すべて」取得します。 |
GetComponentsInChildren | Returns all components of Type type in the GameObject or any of its children. Works recursively. |
GetComponentsInParent | GameObject や深さ優先探索を活用して、親子関係にある親オブジェクトから type のタイプのコンポーネントを「すべて」取得します。 |
SendMessage | ゲームオブジェクトにアタッチされているすべての MonoBehaviour にある methodName と名付けたメソッドを呼び出します |
SendMessageUpwards | ゲームオブジェクトと親(の親、さらに親 ... )にアタッチされているすべての MonoBehaviour にある methodName と名付けたメソッドを呼び出します |
TryGetComponent | Gets the component of the specified type, if it exists. |
GetInstanceID | オブジェクトのインスタンス ID を返します |
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つのオブジェクト参照が同じオブジェクトを参照しているか比較します。 |
OnJointBreak | ゲームオブジェクトに対するジョイントが外れたとき呼び出されます |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.