| On this page | |
| Since | 16.0 |
このノードは、エージェント間に親子関係を作成します。これによって、あるエージェントが他のエージェントのトランスフォームに従うようになります。 これは、騎手を馬や車のエージェントに乗せたい場合に役立ちます。 エージェントには複数の子を取り付けることができ、その親子階層を任意に深くすることができます。
デフォルトでは、2番目の入力内のエージェントが Parent Group 内のエージェントに順次取り付けられて行き、必要に応じてループします。
セットアップをカスタマイズできるように、agentrel_parentid Pointアトリビュートを使って、取り付け先の親エージェントを指定することができます。
詳細は、エージェントの親子関係を参照してください。
パラメータ ¶
これらのパラメータは、 Child Agents 入力(2番目の入力)が接続されている場合にのみ利用可能です。
Parent Group
子エージェントの取り付け先の親エージェント。
Match Parent Agent Scale
When turned on, modifies the child agent’s scale to match the parent agent’s scale. This is useful if the parent agents have varying scales and you want the child agents to be scaled by the same amount as their parents.
Parent Joint
When turned on, the child agent (or one of its joints) can be attached to a particular joint of the parent agent, in addition to inheriting the parent agent’s transform. This parameter specifies the joint to attach the child agent to.
Child Joint
(Optional) When Parent Joint is turned on, this is the joint of the child agent (such as the hip) to align with the Parent Joint.
Constraint Type
When Parent Joint is turned on, this specifies whether to constrain the child agent to the position of the Parent Joint, the rotation, or both.
Translate
子のトランスフォームを調整するための追加移動量。
Rotate
子のトランスフォームを調整するための追加回転量。
When turned on, updates the child agents' transforms to attach to their parents.
This is done automatically by the crowd solver at each timestep, but can be applied here to immediately visualize the attachment or to attach agents to existing crowd motion.
Group
When Transform Child Agents is turned on, this specifies the root agents of the parent-child hierarchies to update.
アトリビュート ¶
このノードは、以下のPointアトリビュートを作成します。 これらのアトリビュートのどれかが入力エージェント上に既に存在すると、それらのアトリビュートがそれに該当するパラメータを上書きします。
| 名前 | クラス | タイプ | 説明 |
|---|---|---|---|
agentrel_parentid
|
Point | Integer |
親エージェントを識別します。これは、 |
agentrel_type
|
Point | Integer |
親ジョイントの位置、回転または両方に一致しているかどうかを示します。
この値の仕様は、 |
agentrel_parentjoint
|
Point | String |
子エージェントの取り付け先となる親エージェントのジョイント。 |
agentrel_childjoint
|
Point | String |
親エージェントのジョイントに揃えたい子エージェントのジョイント。 |
agentrel_P
|
Point | Vector |
子エージェントの追加移動量。 |
agentrel_orient
|
Point | Quaternion |
子エージェントの追加回転量。 |
入力 ¶
Agents
A crowd of agents. This input could already contain parent/child agent pairs.
Child Agents
(Optional) The new agents to attach to agents in the Agents input.
出力 ¶
Agents
The input agents with the Child Agents merged in.
Examples ¶
AgentRelationshipBasic Example for Agent Relationship geometry node
このサンプルでは、単純な親子エージェントのセットアップ方法を説明しています。
| See also |