Navigation
API > API/Runtime > API/Runtime/HeadMountedDisplay > API/Runtime/HeadMountedDisplay/IXRCamera
Description
Calculates the offset for the camera position, given the specified eye pass, position and rotation. An XR plugin implementing stereo rendering should forward all calls of CalculateStereoViewOffset to this method.
| Name | CalculateStereoCameraOffset |
| Type | function |
| Header File | /Engine/Source/Runtime/HeadMountedDisplay/Public/IXRCamera.h |
| Include Path | #include "IXRCamera.h" |
void CalculateStereoCameraOffset
(
const int32 ViewIndex,
FRotator & ViewRotation,
FVector & ViewLocation
)