Get Closest Element Index From Vector Array

Get Closest Element Index From Vector Array

Finds the closest element to an input position from a Vector3 array.

Success: When the backboard key could be set.

Failure: When the backboard key could not be set.

Running: Never


Attributes

Attributes

Type

Description

Attributes

Type

Description

lockAgent

bool

If on, ensures no data on the agent is written simultaneously by nodes that have this option active.

inputPosition

vector3

The input position

indexBlackboardKey

int

The index of the closest element from the array

inArrayBlackboardKey

vector3 array

Blackboard array key containing the elements used for finding the closest position

Copyright © 2017, Toolchefs LTD.