UHeadMountedDisplayFunctionLibrary::GetDevicePose

Cross XR-System query that returns a specific device's tracked position and orientation (in tracking space).

Windows
MacOS
Linux

References

Module

HeadMountedDisplay

Header

/Engine/Source/Runtime/HeadMountedDisplay/Public/HeadMountedDisplayFunctionLibrary.h

Include

#include "HeadMountedDisplayFunctionLibrary.h"

Source

/Engine/Source/Runtime/HeadMountedDisplay/Private/HeadMountedDisplayFunctionLibrary.cpp

Syntax

static void GetDevicePose
(
    const FXRDeviceId & XRDeviceId,
    bool & bIsTracked,
    FRotator & Orientation,
    bool & bHasPositionalTracking,
    FVector & Position
)

Remarks

Cross XR-System query that returns a specific device's tracked position and orientation (in tracking space).

Parameters

Parameter

Description

XRDeviceId

Specifies the device you're querying for.

bIsTracked

[out] Details if the specified device is tracked (i.e. should the rest of the outputs be used)

Orientation

[out] Represents the device's current rotation - NOTE: this value is not late updated and will be behind the render thread

bHasPositionalTracking

[out] Details if the specified device has positional tracking (i.e. if the position output should be used)

Position

[out] Represents the device's current position - NOTE: this value is not late updated and will be behind the render thread

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss