IXRCamera::CalculateStereoCameraOffset

Calculates the offset for the camera position, given the specified eye pass, position and rotation.

Windows
MacOS
Linux

Override Hierarchy

IXRCamera::CalculateStereoCameraOffset()

FDefaultXRCamera::CalculateStereoCameraOffset()

References

Module

HeadMountedDisplay

Header

/Engine/Source/Runtime/HeadMountedDisplay/Public/IXRCamera.h

Include

#include "IXRCamera.h"

Syntax

void CalculateStereoCameraOffset
(
    const enum EStereoscopicPass StereoPassType,
    FRotator & ViewRotation,
    FVector & ViewLocation
)

Remarks

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss