Hello,
I’m currently setting up a camera system to have a camera follow the player on a spline.
As the player can move anywhere and get too close from my camera at the moment, I would like it to move away from the player when the distance between the player and the camera is too short.
For now, I’m using a Find Location Closest to World Location node to move the camera close to the player and added an offset variable that I add to the player location to prevent the camera from going too close.
I am not satisfied with this solution because depending on the world location of my spline I need to change the offset and in some situations it could get too close if I do not place another camera to switch to.
Here is how I currently move my camera:
I would like to find a way to dynamically have my camera reach an ideal location on the spline that would ensure a minimum distance from the player.
Hope that everything is clear and that you will have a solution for me
Thank you very much for the help!