I\'m studying behavior trees since I\'m implementing the AI for my current game, and for the nodes that involve chasing the player or some other target, I\'ve seen code like thi