Houdini 19.0 Nodes Geometry nodes Agent Look At

Agent Look At 2.0 geometry node

Adjusts the head of an agent to look at a specific object or position.

On this page
Since 14.5

This node is used to modify the transform of the head bone of an agent to orient it towards an object or position.

Attributes

This node requires the agentrig_head and agentrig_restclip attributes to be present on the input geometry. These attributes can be created by the Agent Prep SOP.

Parameters

Look At

Group

The group of agents to modify.

Eye Offset

The offset (in agent world space) to use from the head bone position.

Horizontal Limit Angle

The maximum angle (in degrees) that the head can rotate horizontally to look at the target.

Vertical Limit Angle

The maximum angle (in degrees) that the head can rotate vertically to look at the target.

Limit Head Turn Per Frame

If enabled, limits how far the agent’s head can rotate in a single frame. This causes the agent’s head to gradually turn towards the target. If disabled, the agent’s head will always look directly at the target position.

Adjust Immediately on Initial Frame

Specifies that the head should be adjusted immediately on the initial frame (if necessary), instead of being limited by the maximum turn rate.

Head Turn Angle

The maximum angle (in degrees) that the agent’s head can rotate by in a single frame if Limit Head Turn Per Frame is enabled.

Reference Direction

The agent’s axis which will be aligned to follow the velocity vector. For example, setting this to 1,0,0 will align the agent’s X-axis with its velocity.

Reference Up

The original up vector of the agent. This parameter is used along with the Reference Direction when updating the agent’s orientation.

Look Ats

The objects or positions for the agents to look at. Each agent will choose the closest target that is within its field of view, and a new target will only be selected when the current target is no longer visible.

Simulation

Reset Simulation

Clears the entire simulation cache.

Sub Steps

Specifies how many substeps the DOP simulation should perform each frame.

Start Frame

Specifies the frame at which the simulation will start cooking.

Scale Time

Specifies a scale factor that relates global time to the simulation time for the DOP Network.

Inputs

Agents

The packed agent primitives to modify.

Outputs

Agents

The modified packed agent primitives.

See also

Agent Look At