/
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
lockAgentboolIf on, ensures no data on the agent is written simultaneously by nodes that have this option active.
inputPositionvector3The input position
indexBlackboardKeyintThe index of the closest element from the array
inArrayBlackboardKeyvector3 arrayBlackboard array key containing the elements used for finding the closest position

Related content

Get Closest Agent
Get Closest Agent
More like this
Set Blackboard Array Entry Element
Set Blackboard Array Entry Element
More like this
Compute Direction
Compute Direction
More like this
Iterator
More like this
Proximity
More like this
Create Agent
More like this

Copyright © 2017, Toolchefs LTD.