I’m making a top down game and I want the camera to not rotate at all when the player rotates. I know in unity you keep the camera separated and update the camera position in a script and I’m sure you can do that in UE4 as well, thing is this is gonna be a split-screen game and I don’t know if UE4 allows split-screen if the camera is not in the blueprint.
I tried this code:
void AMyCharacter::moveRotate(float Value)
{
this->AddControllerYawInput(Value);
topDownCamera->AddLocalRotation(FRotator(0.0, 0.0, -Value));
}
to see if I could cancel out the rotation but it still rotated (although it did rotate slower than the parent)
I tried setting the relative rotation and the world rotation to zero and it didn’t work, I tried setting the camera as the root component and it didn’t work either.
I just want the camera to not rotate when my character rotates.
Any help will be appreciated, thanks.
P.S I’m using the A and D keys to rotate my character