Navigation
API > API/Runtime > API/Runtime/HeadMountedDisplay > API/Runtime/HeadMountedDisplay/IXRTrackingSystem
Description
If the device id represents a head mounted display, fetches the relative position of the given eye relative to the eye. If the device is does not represent a stereoscopic tracked camera, orientation and position should be identity and zero and the return value should be false.
| Name | GetRelativeEyePose |
| Type | function |
| Header File | /Engine/Source/Runtime/HeadMountedDisplay/Public/IXRTrackingSystem.h |
| Include Path | #include "IXRTrackingSystem.h" |
bool GetRelativeEyePose
(
int32 DeviceId,
int32 ViewIndex,
FQuat & OutOrientation,
FVector & OutPosition
)
true if the pose is valid or not. If the device is not a stereoscopic device, return false.
Parameters
| Name | Remarks |
|---|---|
| DeviceId | the device to request the eye pose for. |
| ViewIndex | the view the pose should be requested for, if passing in INDEX_NONE, the method should return a zero offset. |
| OutOrientation | The orientation of the eye relative to the device orientation. |
| OutPosition | The position of the eye relative to the tracked device |