If you’re reading this, there probably aren’t very many posts yet. But don’t worry, you can be the first! Either create a new post or just reply to this one to say ‘hi’.
Well… I guess it would be the home location ‘a’ subtracted by the player location ‘b’ = a-b or home-player. because we are going back toward x=0
Since we are either moving forward or backward to get home it would be home location - player location (a-b)
edit: misunderstood the question originally. We would need to subtract from the player location and add in the direction of the home.