How do I make my NPC rotate to look the player?

Godot Version

4.4

Question

How do I make my NPC rotate to always look at the player?

I have this 2D NPC that I want to to rotate looking always towards the player. Something simple, doesnt need to be cool visually, indeed I just want the NPC to change rotation to always face the player. How do I do that?

Can’t you just use the angle_to() func to get the angle between the NPC and your character, and afterwords rotate the NPC based on that angle?

I think you could also toggle it as a billboard. They can be set to always face the camera. I believe it’s an option for Sprite3d.