Skip to content

Check Distance To Point

Checks the distance between a transform and a world-space point.

Parameters

Parameter Description
From Object Transform to measure from.
To Point Point in space to measure to.
Check Numeric comparison.
Distance Distance value to compare against.
True Event Sent when the comparison is true.
False Event Sent when the comparison is false.
Store Result Optional bool to store the test result.

Example

  1. Set From Object to Agent.
  2. Set To Point to a patrol node position.
  3. Set Check to Less Than Or Equal.
  4. Set Distance to 0.25.
  5. Send NodeReached on True Event.