Navigation
API > API/Runtime > API/Runtime/HeadMountedDisplay
References
| Module | HeadMountedDisplay |
| Header | /Engine/Source/Runtime/HeadMountedDisplay/Public/HeadMountedDisplayTypes.h |
| Include | #include "HeadMountedDisplayTypes.h" |
Syntax
enum EXRSpaceType
{
UnrealWorldSpace,
XRTrackingSpace,
}
Values
| Name | Description |
|---|---|
| UnrealWorldSpace | The unreal coordinate system. Affected by world scaling and the TrackingToWorldTransform. |
| XRTrackingSpace | The coordinate system the XR Device is tracking itself in. |
Remarks
Used to get unreal world space or tracking space positions in XR. Working only with unreal world space coordinates is almost always simpler and should be generally preferred. There are specific cases where raw XRTrackingSpace coordinates may be useful, particularly in apps where world scale is not 1:1 or where it changes.