# How to set up a basic camera bob?

**URL:** <https://forums.unrealengine.com/t/how-to-set-up-a-basic-camera-bob/280269>\
**Category:** Cinematics & Media\
**Tags:** unreal-engine, player, Blueprint, question\
**Created:** [April 11, 2014, 1:56am UTC](https://forums.unrealengine.com/t/how-to-set-up-a-basic-camera-bob/280269 "2014-04-11T01:56:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arkiras](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arkiras/32/1008648_2.png) [@Arkiras](https://forums.unrealengine.com/u/Arkiras)\
**Post date:** [April 11, 2014, 1:56am UTC](https://forums.unrealengine.com/t/how-to-set-up-a-basic-camera-bob/280269/1 "2014-04-11T01:56:41Z")

</div>

I’m trying to set up a simple camerabob that loops while the player is moving then returns smoothly to a neutral position once the player stops.

The first part I have figured out, the second part is what I’m struggling with. I’ve basically set them up both the same way using a vector timeline track for each and lerps however I’m not sure how to stop the loop and begin the ending animation.

My current blueprint setup basically just loops the headbob infinitely once the key is pressed, even after it’s been released. I assume this is because I need to stop the playing timeline once the key is released but I’m not sure how to do that and still play the HeadBob End animation?

Current BP for reference:

[https://dl.dropboxusercontent.com/u/27624662/UE4Blueprints/HeadBobBlueprint.png](https://dl.dropboxusercontent.com/u/27624662/UE4Blueprints/HeadBobBlueprint.png)

---

<div class="post-metadata">

**Author:** ![Arkiras](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arkiras/32/1008648_2.png) [@Arkiras](https://forums.unrealengine.com/u/Arkiras)\
**Post date:** [April 11, 2014, 5:31pm UTC](https://forums.unrealengine.com/t/how-to-set-up-a-basic-camera-bob/280269/2 "2014-04-11T17:31:52Z")

</div>

For anyone who is curious I managed to solve this by breaking it up into two pieces/timelines. Doesn’t seem like a very efficient way to do this but it works.

[https://dl.dropboxusercontent.com/u/27624662/UE4Blueprints/HeadBobBlueprint\_Working.png](https://dl.dropboxusercontent.com/u/27624662/UE4Blueprints/HeadBobBlueprint_Working.png)

---

<div class="post-metadata">

**Author:** ![PeterLNewton](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PeterLNewton](https://forums.unrealengine.com/u/PeterLNewton)\
**Post date:** [April 11, 2014, 7:39pm UTC](https://forums.unrealengine.com/t/how-to-set-up-a-basic-camera-bob/280269/3 "2014-04-11T19:39:14Z")

</div>

Thanks, this is nice. Also in **ContentExamples** , Level **Blueprint\_Input\_Examples** they have Camera Shake on the Controller. Which you may want to use for something a bit more spicy like an explosion.

---

<div class="post-metadata">

**Author:** ![cleggy92](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cleggy92](https://forums.unrealengine.com/u/cleggy92)\
**Post date:** [January 16, 2015, 1:04am UTC](https://forums.unrealengine.com/t/how-to-set-up-a-basic-camera-bob/280269/4 "2015-01-16T01:04:01Z")

</div>

Could you post a quick how to on how you did this? I can emulate some of it, but being a complete novice I don’t know where some things are located or which option to choose. For example is “Player Camera” equal to my “First Person Camera”? And which “Set Relative Location” do I use? None of mine doesn’t say “Target Is Scene Component”. I also don’t know where any of this goes, should I add it inside my character Blueprint?
