Download

How to lock camera (and other components') roll rotation on first person camera?

Hello! I’m making a first person shooter with gravity manipulation. I’ve used the C++ FirstPerson template. One of the features is wall walking. For that I’m using this plugin: Ninja Character Plugin in Code Plugins - UE Marketplace. It works mostly fine apart from one problem. Let’s say my view looks like this at the start:


No let’s say I walk towards the wall and walk on it while looking to the right. Now my view looks like this:

As you can see my character mesh and camera are tilted very awkwardly. Ejecting and looking at the character:

As you can see it is rotated badly. The only thing that is correctly rotated is the capsule component. The component tree looks like this:
Screenshot_5.png
How do I go around locking its rotation towards the gravity center?