Camera pitch replication problem

I’m implemeting a grab fonction on the Collab Viewer (in fly mode for the moment). I attach other actor on the camera of the player pawn. The attachment is working. However, the replication is not working as expected.

If “use controller rotation pitch” and “use controller rotation yaw” are enable in the default class, only yaw rotation is replicated on client and server. If only “use controller rotation pitch” is enable, no rotation yaw are replicated.

There is a way to replicate the pitch and the yaw at same time?

I talked about replicated pitch in a post earlier today. The only solution I found is to create a replicated rotation variable and set it on a tick or timer to get a smooth effect. You can use that for setting your pitch especially in an animation implementation as it’s not replicated like it does for yaw on the server without manually setting it up. They certainly can be done at the same time.

Pitch is replicated separately for some (probably legacy) reason.
If you can use C++, you can access it via Pawn->RemoteViewPitch.
Unfortunately this is still not exposed to blueprints.

4 Likes

This is really useful to know, thanks for sharing this! @Chatouille