Create Yaw/Pitch Control

Hello :),
Im working on the yaw/pitch rotation of a small submarine. In attachment you can see my actual blueprint that I put together after some hours of tutorial watching and testing.
The pitch movement has a clamp because I don’t want that you can pitch overhead. When I play with this BP the pitch is working as intended. But the yaw isnt working at all. When I remove everything between GetWorldRotation and SetRelativeRotation then also the yaw is working.
So first question is: How should the BP look like so that pitch and yaw work.

Removing the part with clamp leads to a second smaller problem. With my submarine I dont want to roll. The relative roll axis should always stay straight. When I alternately pitch and yaw the submarine it tilt to one side. For yawing I need something to tell the submarine to rotate around the global Z-axis what is always vertical. I was playing around with GetWorldRotation but it doesn’t work. How do I get that?

Hi man

When you set the Relative Rotation, you are constatly setting the 0 of the yaw.

try getting the Body Rotation,
Break it , so you have 3 floats
Plug the yaw of the body , to the Yaw of the make rotator you have there.

Ok, so I’m also quiet new to UE4 and Blueprint stuff.
What I have to use to get the body rotation? For me GetWorldRotation seems right. I took the Yaw value and plugged it in the Make Rotator. But I still can only pitch. Yaw isn’t working.

make sure you uncheck “Use controller yaw” in your actor details

It was already unchecked.