# Camera Follow player along a spline with an offset

**URL:** <https://forums.unrealengine.com/t/camera-follow-player-along-a-spline-with-an-offset/481751>\
**Category:** Cinematics & Media\
**Tags:** offset, unreal-engine, follow, Spline, question\
**Created:** [April 11, 2021, 6:14pm UTC](https://forums.unrealengine.com/t/camera-follow-player-along-a-spline-with-an-offset/481751 "2021-04-11T18:14:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DubYYY](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DubYYY](https://forums.unrealengine.com/u/DubYYY)\
**Post date:** [April 11, 2021, 6:14pm UTC](https://forums.unrealengine.com/t/camera-follow-player-along-a-spline-with-an-offset/481751/1 "2021-04-11T18:14:25Z")

</div>

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:

 ![335589-setcameraworldlocationalongspline.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/d/9/ed96c68b90925b5fee5f8706fd1c25fffd6a4404.png)

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!

---

<div class="post-metadata">

**Author:** ![Amba22x](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Amba22x](https://forums.unrealengine.com/u/Amba22x)\
**Post date:** [February 26, 2023, 10:12pm UTC](https://forums.unrealengine.com/t/camera-follow-player-along-a-spline-with-an-offset/481751/2 "2023-02-26T22:12:19Z")

</div>

Up, literally same problem.
