I want this NPC to always look at the player by rotating on the Y axis but for some reason its not working and when I put _process or _process_physics it just dissapears from existance. Help me
extends StaticBody3D
@onready var player = get_parent().get_node("Player")
func ready(delta):
look_at(player.position)
but how would I make the NPC constantly rotate to the player? Gen question bc I watched 11 tutorials and none worked for me and tbh Im pretty new to coding
@tibaverus has the simple answer; if you enable billboard it will always face the camera. That’s what billboard does.
In general, though, like for example if you wanted to do this with something that was 3D rather than a sprite, the way you’d do it would be something like: