Navigation
API > API/Plugins > API/Plugins/XRBase > API/Plugins/XRBase/FDefaultXRCamera
Description
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).
Virtual Inheritance
- IXRCamera::ApplyHMDRotation → FDefaultXRCamera::ApplyHMDRotation
| Name | ApplyHMDRotation |
| Type | function |
| Header File | /Engine/Plugins/Runtime/XRBase/Source/XRBase/Public/DefaultXRCamera.h |
| Include Path | #include "DefaultXRCamera.h" |
| Source | /Engine/Plugins/Runtime/XRBase/Source/XRBase/Private/DefaultXRCamera.cpp |
virtual void ApplyHMDRotation
(
APlayerController * PC,
FRotator & ViewRotation
)