# Camshake controls weapon

**URL:** <https://forums.unrealengine.com/t/camshake-controls-weapon/475238>\
**Category:** Cinematics & Media\
**Tags:** crosshair, fps, unreal-engine, Blueprint, question\
**Created:** [November 30, 2020, 7:05pm UTC](https://forums.unrealengine.com/t/camshake-controls-weapon/475238 "2020-11-30T19:05:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_ffdf71301](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ffdf71301](https://forums.unrealengine.com/u/anonymous_user_ffdf71301)\
**Post date:** [November 30, 2020, 7:05pm UTC](https://forums.unrealengine.com/t/camshake-controls-weapon/475238/1 "2020-11-30T19:05:30Z")

</div>

Hey guys,

I’m creating a FPS weapon. To add realism, I decided to a camshake when you shoot. The camshake basically emulates the recoil of a gun.  
What’s interesting is that I created a full auto rifle, and its camshake changes the pitch of the camera.

**Now, my problem is this:** If the camera is shaking and the crosshair is still in the centre of the screen, I think the rifle and its bullets should follow the crosshair. Instead, only the view and the crosshair moves.

**How can I have the rifle follow the camshake?**

I tried researching but nothing is found. Thank you a lot!

---

<div class="post-metadata">

**Author:** ![Aherys](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/aherys/32/1194650_2.png) [@Aherys](https://forums.unrealengine.com/u/Aherys)\
**Post date:** [December 1, 2020, 9:26pm UTC](https://forums.unrealengine.com/t/camshake-controls-weapon/475238/2 "2020-12-01T21:26:49Z")

</div>

Hello Luca,

Cameshake effectively doesn’t move your camera center.  
It’s like a relative view.

To emulate recoil, most of the game use a combinaison of screenshake (to have the effect of recoil, visually) and move the controller to X,Y position, you have a ton of tutorial on youtube about this subject, ue4 inclued.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ffdf71301](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ffdf71301](https://forums.unrealengine.com/u/anonymous_user_ffdf71301)\
**Post date:** [December 2, 2020, 1:36pm UTC](https://forums.unrealengine.com/t/camshake-controls-weapon/475238/3 "2020-12-02T13:36:52Z")

</div>

Hey Ahe,  
Thanks for your answer. I used the solution you suggested yesterday (I actually had already done something like that) but I hoped there was a way to use the camshake.  
Too bad! Thanks a lot for your time 🙂

---

<div class="post-metadata">

**Author:** ![Aherys](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/aherys/32/1194650_2.png) [@Aherys](https://forums.unrealengine.com/u/Aherys)\
**Post date:** [December 2, 2020, 2:32pm UTC](https://forums.unrealengine.com/t/camshake-controls-weapon/475238/4 "2020-12-02T14:32:51Z")

</div>

No problème.

I think it’s not possible cause camshake is like a camera offset for the VIEW of the camera and not the camera itself. So center of the camera doesn’t change in reality.
