I’m making a 2.5d game. I want to replicate the spring arm lag max distance setting. This means that if the player reaches the max distance away from the camera then the camera will move with the player. Currently my player runs too far too the sides of the screen and I want to keep them more in the middle.
This is what I have so far. I feel like I’m close because the distance vector is returning the correct distance from the camera to the player.