top of page

Transform Within Distance Node

Behavior Tree Editor

Unity

Description

The transform within distance node finds the distance between two transforms. If the distance is less then or equal to a specified value the node will return success, otherwise it will return failure. The node has no children.

Fields/Buttons

  • Transform One (transform) - The first transform that will be used.

  • Transform Two (transform) - The second transform that will be used.

  • Distance (float) - The value that will be used to evaluate the distance between the two transforms.

Pipeline

Adding The Node:

Right click in the graph view of the behavior tree, select “TransformWithinDistance” from the Node Menu.

bottom of page