![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Wodsobe Dobe |
Hello. I am making a 3d game in which you have a side kick that follows you constantly unless told to or is close enough to the player. I have this so far from another Godoter:
func _physics_process(delta):
var to_player = translation.direction_to(player.translation)
move_and_slide(to_player * speed)
velocity.y += delta * gravity
But there’s no gravity, and the sidekick isn’t facing the player, and I can’t figure that one out either. Is there anyway any of ya’ll can help me please? Thanks