Yaw Min and Max limit using world rotation

Hello!

How can i set up the Camera Yaw Min and Yaw Max values with control rotation?
My problem is that, the Camera yaw limits using World Rotation instead rotation relative to Controller.

Thanks for any help!

We fixed it, if anybody needs help feel free to message me!

Hello ! I have the same proble, can you help me, please ?

are you having difficulty getting your camera to rotate beyond 90 degrees in pitch or trying to limit the yaw rotations?

The first thing I’d look at is setting up a custom Player Camera Manager in your custom Player Controller and modify the pitch/yaw settings there…

How did you fix???

What is the solution? I need to be able to set the relative Max and Min Yaw for my first person camera.

why not just share the solution if you’ve found it?

Forgive the necro, but I have been delving here and this may be helpful to people who still find this thread now (as I did yesterday).

The behaviour of the PlayerCameraManager’s Yaw limit looks to be unchangeable from Blueprint unfortunately, so if you are BP only you will have to either continuously update them or just implement the limits yourself with a clamp.

If you have C++ project files, you can get the desired behaviour by overriding LimtViewYaw() in your APlayerCameraManager subclass:

void ASensibleCameraManager::LimitViewYaw(FRotator& ViewRotation, float InViewYawMin, float InViewYawMax)
{
	auto Pawn = GetViewTargetPawn();
	if (Pawn) {
		auto Rot = Pawn->GetTransform().Rotator();
		ViewRotation.Yaw = FMath::ClampAngle(ViewRotation.Yaw, Rot.Yaw + InViewYawMin, Rot.Yaw + InViewYawMax);
		ViewRotation.Yaw = FRotator::ClampAxis(ViewRotation.Yaw);
	}
}