# Pawn Camera Locked to forward Vector

**URL:** <https://forums.unrealengine.com/t/pawn-camera-locked-to-forward-vector/878620>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [April 8, 2023, 3:23pm UTC](https://forums.unrealengine.com/t/pawn-camera-locked-to-forward-vector/878620 "2023-04-08T15:23:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vanhendrix](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vanhendrix](https://forums.unrealengine.com/u/Vanhendrix)\
**Post date:** [April 8, 2023, 3:23pm UTC](https://forums.unrealengine.com/t/pawn-camera-locked-to-forward-vector/878620/1 "2023-04-08T15:23:52Z")

</div>

Hi, I have a problem that I can not solve for some time, I have implemented in my game the possibility for the player to possess a drone, which he can then move with a simple floating pawn component.

My problem is the following: when I control the drone, after a certain random moment, the rotation of the drone’s camera on the Z-axis locks to its initial position and I can’t rotate the drone anymore (I can still move forward/backward, go left/right, and up/down).  
This is the first part of the video on the right when i get this shaky movement.

I rebuilt the exact same system in another project and it works perfectly, (second part of the video)

I tried to find the differences between the two projects that could impact this “bug” (Inputs, controller rotation, code etc) without finding a solution, if someone has an idea of the problem it would be great.

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/a/6/ca6ab1e8d30dc35be6a7aa758c6c7e05d651e0f8.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/a/6/ca6ab1e8d30dc35be6a7aa758c6c7e05d651e0f8.mp4)

---

<div class="post-metadata">

**Author:** ![Vanhendrix](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vanhendrix](https://forums.unrealengine.com/u/Vanhendrix)\
**Post date:** [April 8, 2023, 3:25pm UTC](https://forums.unrealengine.com/t/pawn-camera-locked-to-forward-vector/878620/2 "2023-04-08T15:25:43Z")

</div>

![Bp_Drone_Movement](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/4/c/94c507600a445c681cf1a82548c0de0150057f6b.jpeg)  
The Blueprint Code for drone’s movement (i add controller roll input instead of yaw juste because of the rotation, of my skeletal mesh in the viewport but i also try it and it doesn’t resolve my issue)

![Bp_Drone_ControlRotation](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/d/3/fd31daa13ccfdad9db07e77405a37b839f2e8680.jpeg)

---

<div class="post-metadata">

**Author:** ![EliasWick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eliaswick/32/1175208_2.png) [@EliasWick](https://forums.unrealengine.com/u/EliasWick)\
**Post date:** [April 9, 2023, 10:59am UTC](https://forums.unrealengine.com/t/pawn-camera-locked-to-forward-vector/878620/3 "2023-04-09T10:59:06Z")

</div>

Ah, seems to be the classic [Euler Gimbal Lock](https://youtu.be/zc8b2Jo7mno). I suggest you look at the video.

Here is a part of the forum which explains solutions regarding this problem: [How can I avoid Gimbal Lock with Rotations?](https://forums.unrealengine.com/t/how-can-i-avoid-gimbal-lock-with-rotations/286881)
