Skip to content

Transform Look At Target

Rotates a Transform so a chosen local axis faces another Transform.

Parameters

Parameter Description
Transform The Transform to rotate.
Target The target Transform.
Rotation Constraint None, X, Y, or Z.
Facing Axis Local axis that should face the target.
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 turrets, enemies, and any 3D object that should continuously face a target.