Godot Version
4.2.2
Question
i have been working on an object that its funtions is to follow var target
but that var only applies to one node,
what way could i make it follow the closest object in a group?
4.2.2
i have been working on an object that its funtions is to follow var target
but that var only applies to one node,
what way could i make it follow the closest object in a group?
iterate over the nodes in a group. use distance_to go get the distance. whatever node is closest that is the one to follow
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.