Navigation
API > API/Runtime > API/Runtime/HeadMountedDisplay > API/Runtime/HeadMountedDisplay/IXRTrackingSystem
Description
Get the current pose for a device. This method must be callable both on the render thread and the game thread. For devices that don't support positional tracking, OutPosition will be at the base position.
| Name | GetCurrentPose |
| Type | function |
| Header File | /Engine/Source/Runtime/HeadMountedDisplay/Public/IXRTrackingSystem.h |
| Include Path | #include "IXRTrackingSystem.h" |
bool GetCurrentPose
(
int32 DeviceId,
FQuat & OutOrientation,
FVector & OutPosition
)
true if the pose is valid or not.
Parameters
| Name | Remarks |
|---|---|
| DeviceId | the device to request the pose for. |
| OutOrientation | The current orientation of the device |
| OutPosition | The current position of the device |