# Bobbing Left and Backwards

**URL:** <https://forums.unrealengine.com/t/bobbing-left-and-backwards/319532>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE4, Blueprint, question\
**Created:** [May 23, 2015, 12:36pm UTC](https://forums.unrealengine.com/t/bobbing-left-and-backwards/319532 "2015-05-23T12:36:58Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![c0mbatcat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@c0mbatcat](https://forums.unrealengine.com/u/c0mbatcat)\
**Post date:** [May 23, 2015, 12:36pm UTC](https://forums.unrealengine.com/t/bobbing-left-and-backwards/319532/1 "2015-05-23T12:36:58Z")

</div>

Hi, I am try to get full camera bobbing with the movement keys. So far I can’t seem to figure out why left and back doesn’t work at all. I have been using this as reference: [How to Make a Camera Bobbing Blueprint? - Blueprint - Epic Developer Community Forums](https://answers.unrealengine.com/questions/28793/how-to-make-a-camera-bobbing-blueprint.html)  
Thank you for your . I hope you can figure this out.

 ![43891-lotsnlotsofproblems.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/2/3/f23d941c63907d432686fd0b904211dac679fcda.png)

 ![43850-ihasproblem.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/1/2/612c71a9dbc66d66a15b486411b334a7b6649062.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_776011b61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_776011b61](https://forums.unrealengine.com/u/anonymous_user_776011b61)\
**Post date:** [May 23, 2015, 12:41pm UTC](https://forums.unrealengine.com/t/bobbing-left-and-backwards/319532/2 "2015-05-23T12:41:27Z")

</div>

Hi

Have you thought about running off the Axis Value, if negative then do backwards and left. IF positive the opposite.

---

<div class="post-metadata">

**Author:** ![c0mbatcat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@c0mbatcat](https://forums.unrealengine.com/u/c0mbatcat)\
**Post date:** [May 23, 2015, 8:19pm UTC](https://forums.unrealengine.com/t/bobbing-left-and-backwards/319532/3 "2015-05-23T20:19:02Z")

</div>

Axis Value for the Input Axis Mapping or the Head Bobbing Axis?

---

<div class="post-metadata">

**Author:** ![c0mbatcat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@c0mbatcat](https://forums.unrealengine.com/u/c0mbatcat)\
**Post date:** [May 24, 2015, 1:40am UTC](https://forums.unrealengine.com/t/bobbing-left-and-backwards/319532/4 "2015-05-24T01:40:45Z")

</div>

I am still having trouble, can you explain it to me in more detail?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_776011b61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_776011b61](https://forums.unrealengine.com/u/anonymous_user_776011b61)\
**Post date:** [May 24, 2015, 3:45am UTC](https://forums.unrealengine.com/t/bobbing-left-and-backwards/319532/5 "2015-05-24T03:45:25Z")

</div>

Both,

The axis will give you a positive to negative number.

At the moment you are running the same BOB when you are walking forward or backwards.

You would need to split them, not sure if this will work with your coding but you could do something like this.

This is not the right camera shake, but you should get the idea.

Example: Top one = Forward BOB / Bottom one = Backward BOB

 ![43958-capture.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/2/4/924de7c095481d99ed65d018070893e531e6c0a6.jpeg)

---

<div class="post-metadata">

**Author:** ![c0mbatcat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@c0mbatcat](https://forums.unrealengine.com/u/c0mbatcat)\
**Post date:** [May 24, 2015, 5:24am UTC](https://forums.unrealengine.com/t/bobbing-left-and-backwards/319532/6 "2015-05-24T05:24:38Z")

</div>

Thank you for replying and helping me so far! I have tried your method and a modification of your example which is below! But it doesn’t bob at all. I know I am doing something stupidly wrong here but I just can’t seem to find it. Also what Am I suppose to put in the float for \> and \<. Thanks a bunch!

[alt text

 ![43947-thankyouforyourreply.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/2/a/42a023c69c153e1c709a457df244d0e6449e5363.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_776011b61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_776011b61](https://forums.unrealengine.com/u/anonymous_user_776011b61)\
**Post date:** [May 24, 2015, 5:31am UTC](https://forums.unrealengine.com/t/bobbing-left-and-backwards/319532/7 "2015-05-24T05:31:41Z")

</div>

Hi

Remember in you Setup, there 1 and -1 unless you have changed them

So if you are looking less than -1, you will not get a result as it is -1. Try with 0 and see how that turns out.

![43962-capture.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/e/3/1e3a335a49fcb31b023da76c40a3be07b88f4612.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_776011b61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_776011b61](https://forums.unrealengine.com/u/anonymous_user_776011b61)\
**Post date:** [May 24, 2015, 5:34am UTC](https://forums.unrealengine.com/t/bobbing-left-and-backwards/319532/8 "2015-05-24T05:34:19Z")

</div>

Without the Shake plugged in, plug in some Print strings to make sure it is getting called.

Just ran it and it works for me.

Clip - Uploading nnow

Eea0SpofCUY

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_776011b61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_776011b61](https://forums.unrealengine.com/u/anonymous_user_776011b61)\
**Post date:** [May 24, 2015, 5:41am UTC](https://forums.unrealengine.com/t/bobbing-left-and-backwards/319532/9 "2015-05-24T05:41:44Z")

</div>

Example - Print Strings

 ![43963-capture.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/5/3/3538cece4f40a68d4a4b55d31843dc65bd547c0b.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_776011b61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_776011b61](https://forums.unrealengine.com/u/anonymous_user_776011b61)\
**Post date:** [May 24, 2015, 5:43am UTC](https://forums.unrealengine.com/t/bobbing-left-and-backwards/319532/10 "2015-05-24T05:43:02Z")

</div>

\*\*\* ALSO you have no scale setup

---

<div class="post-metadata">

**Author:** ![c0mbatcat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@c0mbatcat](https://forums.unrealengine.com/u/c0mbatcat)\
**Post date:** [May 24, 2015, 6:58am UTC](https://forums.unrealengine.com/t/bobbing-left-and-backwards/319532/11 "2015-05-24T06:58:33Z")

</div>

THANK YOU SO MUCH!!! Here’s a photo for future new comers! Thanks again!!!

 ![43974-thankyou.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/d/6/5d6c45ce85befa19033748018ffd89bb2221c5ee.png)

---

<div class="post-metadata">

**Author:** ![shinkan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shinkan](https://forums.unrealengine.com/u/shinkan)\
**Post date:** [January 11, 2016, 1:35am UTC](https://forums.unrealengine.com/t/bobbing-left-and-backwards/319532/12 "2016-01-11T01:35:56Z")

</div>

If you have just one “Shake” for forward and backward movements you could also use “ABS” for scale.

 ![73802-absshake.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/0/7/d07ab97810b6839bba007c9379470b177eb45089.png)
