UHeadMountedDisplayFunctionLibrary::GetOrientationAndPosition

Grabs the current orientation and position for the HMD.

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 GetOrientationAndPosition
(
    FRotator & DeviceRotation,
    FVector & DevicePosition
)

Remarks

Grabs the current orientation and position for the HMD. If positional tracking is not available, DevicePosition will be a zero vector

Parameters

Parameter

Description

DeviceRotation

(out) The device's current rotation

DevicePosition

(out) The device's current position, in its own tracking space

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