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 physicsprocess(delta):
var toplayer = translation.directionto(player.translation)
moveandslide(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