Face Towards
Turns to face the agent specified.

Description
The Face Towards block turns to face the agent specified. This is a code block part of the Movement drawer.
Usage
Turns to face the agent specified.
Syntax
Inputs in this block:
- A block which specifies another agent in The World
Example
The elephants face toward the nearest patch of grass within their sensing radius and walk towards it. This behavior is enabled by the nearest block, which identifies the closest agent of a specified breed. This may model a hungry elephant more accurately than a basic wiggle walk since elephants likely walk towards food.

Notes
The Face Towards block is commonly used with detection blocks like "nearest" to create intelligent movement patterns where agents orient themselves toward targets.
Related Blocks
- Nearest Within Steps - Find the nearest agent within a radius
- Forward - Move forward after facing a target