IXRTrackingSystem::GetCurrentPose

Get the current pose for a device.

Windows
MacOS
Linux

Override Hierarchy

IXRTrackingSystem::GetCurrentPose()

FXRTrackingProxy::GetCurrentPose()

References

Module

HeadMountedDisplay

Header

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

Include

#include "IXRTrackingSystem.h"

Syntax

bool GetCurrentPose
(
    int32 DeviceId,
    FQuat & OutOrientation,
    FVector & OutPosition
)

Remarks

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.

Returns

true if the pose is valid or not.

Parameters

Parameter

Description

DeviceId

the device to request the pose for.

OutOrientation

The current orientation of the device

OutPosition

The current position of the device

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback