FDefaultXRCamera::ApplyHMDRotation

Optionally called by [APlayerController](API\Runtime\Engine\GameFramework\APlayerController) to apply the orientation of the headset to the PC's rotation.

Windows
MacOS
Linux

Override Hierarchy

IXRCamera::ApplyHMDRotation()

FDefaultXRCamera::ApplyHMDRotation()

References

Module

HeadMountedDisplay

Header

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

Include

#include "DefaultXRCamera.h"

Source

/Engine/Source/Runtime/HeadMountedDisplay/Private/DefaultXRCamera.cpp

Syntax

virtual void ApplyHMDRotation
(
    APlayerController * PC,
    FRotator & ViewRotation
)

Remarks

Optionally called by APlayerController to apply the orientation of the headset to the PC's rotation. If this is not done then the PC will face differently than the camera, which might be good (depending on the game).

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