Skip to content

Transform Look At Point 2D

Rotates a Transform in 2D so a chosen local axis faces a world position.

Parameters

Parameter Description
Transform The Transform to rotate.
World Position World position to face.
Facing Axis 2D local axis that should face the point.
Smooth Time Smoothing time in seconds.
Max Speed Maximum turn speed in degrees per second.

Notes

  • This is a good fit for top-down aiming and 2D turret behavior.