FVector NewCameraOffset = Camera->GetComponentLocation() - GetActorLocation(); | |
---|---|
NewCameraOffset.Z = 0; | |
AddActorWorldOffset(NewCameraOffset); | |
VRRoot->AddWorldOffset(-NewCameraOffset); |
This is the code used in class for correcting the position of the camera, but when I ran it, the camera is still a bit off to the side. Is it normal?