Skip to content

Transform Get Distance To Target

Measures the distance between two Transforms.

Parameters

Parameter Description
Transform The Transform to measure from.
Target The target Transform.
Get Distance Stores the distance result.
Axis Axis used for measuring, such as XY, XZ, or XYZ.

Notes

  • Use XY for 2D games and XZ for top-down 3D movement.
  • This action is often paired with range checks, chase logic, or target ranking.