Skip to content

Transform Move Towards Target

Moves a Transform toward a target Transform with optional smoothing and speed limiting.

Parameters

Parameter Description
Transform The Transform to move.
Target The target Transform.
Axis Which axes are allowed to move.
Smooth Time Smoothing time in seconds. 0 disables smoothing.
Max Speed Maximum movement speed in units per second. 0 removes the speed cap.
Finish Distance Finishes when the remaining distance is less than this value. Use -1 to never finish.
Finished Event Optional event sent when the move finishes.

Notes

  • This is useful for chase, follow, and camera behaviors.
  • Axis filtering makes it easy to build 2D or top-down movement with the same action.