Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Deganic |
Hi. So, in this 2D game I’m working on I have this rectangle-shaped polygon that has a look_at function set up like this:
func _process(delta):
var plr_pos = get_node("../../../../Player").pos
print(plr_pos)
look_at(plr_pos)
It seems to work, however, it’s supposed to aim at the player, and my rectangle is using the wrong side to do that. How can I fix this?
Thanks in advance.
https://forum.godotengine.org/44449/problems-with-rotation-look_at-and-faces-in-2d
does this help?
volzhs | 2019-07-01 19:56