Transform Look At Direction
Rotates a Transform so a chosen local axis faces a world direction.
Parameters
| Parameter | Description |
|---|---|
| Transform | The Transform to rotate. |
| Direction | World direction to face. |
| Rotation Constraint | None, X, Y, or Z. |
| Facing Axis | Local axis that should face the direction. |
| World Up | Used when Rotation Constraint is None. |
| Smooth Time | Smoothing time in seconds. |
| Max Speed | Maximum turn speed in degrees per second. |
Notes
- Use this for 3D facing behavior when you already have a direction vector.