USteamVRFunctionLibrary::GetTrackedDevicePositionAndOrientation

Gets the orientation and position (in device space) of the device with the specified ID

Windows
MacOS
Linux

References

Module

SteamVR

Header

/Engine/Plugins/Runtime/Steam/SteamVR/Source/SteamVR/Classes/SteamVRFunctionLibrary.h

Include

#include "SteamVRFunctionLibrary.h"

Source

/Engine/Plugins/Runtime/Steam/SteamVR/Source/SteamVR/Private/SteamVRFunctionLibrary.cpp

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintPure, Category="SteamVR")
static bool GetTrackedDevicePositionAndOrientation
(
    int32 DeviceId,
    FVector & OutPosition,
    FRotator & OutOrientation
)

Remarks

Gets the orientation and position (in device space) of the device with the specified ID

Returns

True if the specified device id had a valid tracking pose this frame, false otherwise

Parameters

Parameter

Description

DeviceId

Id of the device to get tracking info for

OutPosition

(out) Current position of the device

OutOrientation

(out) Current orientation of the device

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