Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/HeadMountedDisplay/Public/IXRTrackingSystem.h |
Include |
#include "IXRTrackingSystem.h" |
class IXRTrackingSystem :
public IModularFeature,
public IXRSystemIdentifier
Main access point to an XR tracking system. Use it to enumerate devices and query their poses.
Name | Description | ||
---|---|---|---|
|
CalibrateExternalTrackingSource ( |
Called to calibrate the offset transform between an external tracking source and the internal tracking source (e.g. mocap tracker to and HMD tracker). |
|
|
ConfigureGestures ( |
||
|
EXRDeviceCon... |
ConnectRemoteXRDevice |
|
|
CountTrackedDevices ( |
Get the count of tracked devices |
|
|
DisconnectRemoteXRDevice() |
||
|
DoesSupportLateProjectionUpdate() |
Return true if the default camera implementation should query the current projection matrix at the start of the render frame and apply late update. |
|
|
DoesSupportLateUpdate() |
Return true if the default camera implementation should query the current pose at the start of the render frame and apply late update. |
|
|
DoesSupportPositionalTracking() |
Whether or not the system supports positional tracking (either via sensor or other means) |
|
|
EnumerateTrackedDevices ( |
Reports all devices currently available to the system, optionally limiting the result to a given class of devices. |
|
|
GetAudioListenerOffset ( |
Get the offset, in device space, of the reported device (screen / eye) position to the center of the head. |
|
|
GetBaseOrientation() |
Returns current base orientation of HMD as a quaternion. |
|
|
GetBasePosition() |
Returns current base position of HMD. |
|
|
GetBaseRotation() |
Returns current base orientation of HMD as yaw-pitch-roll combination. |
|
|
GetCurrentPose |
Get the current pose for a device. |
|
|
GetFloorToEyeTrackingTransform ( |
Computes a transform to convert from 'Floor' origin space to 'Eye' origin space. |
|
|
GetHMDData ( |
Platform Agnostic Query about HMD details |
|
|
IHeadMounted... |
GetHMDDevice() |
Access HMD rendering-related features. |
|
IXRLoadingSc... |
GetLoadingScreen() |
Access the loading screen interface associated with this tracking system, if any. |
|
GetModularFeatureName() |
||
|
GetMotionControllerData ( |
Platform Agnostic Query about MotionControllers details |
|
|
GetPlayAreaBounds ( |
Get the bounds of the area where the user can freely move while remaining tracked centered around the specified origin |
|
|
GetRelativeEyePose |
If the device id represents a head mounted display, fetches the relative position of the given eye relative to the eye. |
|
|
TSharedPtr< ... |
GetStereoRenderingDevice() |
Access Stereo rendering device associated with this XR system. |
|
GetTrackedDevicePropertySerialNumber ( |
If the device id represents a tracking sensor, reports the serial number as a string if the device supports it. |
|
|
EXRTrackedDe... |
GetTrackedDeviceType ( |
If the device id represents a tracking sensor, reports the device type. |
|
EHMDTracking... |
GetTrackingOrigin() |
Returns current tracking origin. |
|
GetTrackingSensorProperties ( |
If the device id represents a tracking sensor, reports the frustum properties in game-world space of the sensor. |
|
|
GetTrackingToWorldTransform() |
Returns the system's latest known tracking-to-world transform. |
|
|
GetVersionString() |
Returns version string. |
|
|
float |
GetWorldToMetersScale() |
This method should return the world to meters scale for the current frame. |
|
TSharedPtr< ... |
GetXRCamera ( |
Get the IXCamera instance for the given device. |
|
IXRInput ... |
GetXRInput() |
Access optional HMD input override interface. |
|
GetXRSystemFlags() |
Returns device specific flags. |
|
|
HasValidTrackingPosition() |
If the system currently has valid tracking positions. If not supported at all, returns false. |
|
|
IsHeadTrackingAllowed() |
Returns true, if head tracking is allowed. |
|
|
IsHeadTrackingAllowedForWorld ( |
Same as IsHeadTrackingAllowed, but returns false if the World is not using VR (such as with the non-VR PIE instances when using VR Preview) |
|
|
IsHeadTrackingEnforced() |
Can be used to enforce tracking even when stereo rendering is disabled. |
|
|
IsTracking ( |
Check current tracking status of a device. |
|
|
OnBeginPlay ( |
This method is called when playing begins. Useful to reset all runtime values stored in the plugin. |
|
|
OnBeginRendering_GameThread() |
Called just before rendering the current frame on the game frame. |
|
|
OnBeginRendering_RenderThread ( |
Called just before rendering the current frame on the render thread. |
|
|
OnEndGameFrame ( |
This method is called when game frame ends (called on a game thread). |
|
|
OnEndPlay ( |
This method is called when playing ends. Useful to reset all runtime values stored in the plugin. |
|
|
OnLateUpdateApplied_RenderThread ( |
Called just after the late update on the render thread passing back the current relative transform. |
|
|
OnStartGameFrame ( |
This method is called when new game frame begins (called on a game thread). |
|
|
RebaseObjectOrientationAndPosition |
Temporary method until Morpheus controller code has been refactored. |
|
|
ResetOrientation ( |
Resets orientation by setting roll and pitch to 0, assuming that current yaw is forward direction. |
|
|
ResetOrientationAndPosition ( |
Resets orientation by setting roll and pitch to 0, assuming that current yaw is forward direction and assuming current position as a 'zero-point' (for positional tracking). |
|
|
ResetPosition() |
Resets position, assuming current position as a 'zero-point'. |
|
|
SetBaseOrientation ( |
Sets base orientation, assuming that this is forward direction. Position is not changed. |
|
|
SetBasePosition ( |
Sets base position of the HMD. |
|
|
SetBaseRotation ( |
Sets base orientation by setting yaw, pitch, roll, assuming that this is forward direction. |
|
|
SetHeadTrackingEnforced ( |
Can be used to enforce tracking even when stereo rendering is disabled. |
|
|
SetTrackingOrigin ( |
Sets tracking origin (either 'eye'-level or 'floor'-level). |
|
|
UpdateExternalTrackingPosition ( |
Called after calibration to attempt to pull the internal tracker (e.g. HMD tracking) in line with the external tracker (e.g. mocap tracker). |
|
|
UpdateTrackingToWorldTransform ( |
Refreshes the system's known tracking-to-world transform. |
Name |
Description |
---|---|
HMDDeviceId |
Device id 0 is reserved for an HMD. |
Name | Description | ||
---|---|---|---|
|
RefreshPoses() |
This functionality is no longer supported. |