How do I get access to other kinematicbody2 positions

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By James122333

How do I get access to other kinematicbody2 positions

Such as if i want something to look at the player, how do i get the position of the player

:bust_in_silhouette: Reply From: Lopy

You can access other nodes via the tree, using get_node() or $, or you can use an Area to tell you which Nodes are overlapping it.
Once you get your KinematicBody, just read it’s position property.