USteamVRFunctionLibrary::GetHandPositionAndOrientation

Given a controller index and a hand, returns the position and orientation of the controller

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",
          Meta=(DeprecatedFunction, DeprecationMessage="Use motion controller components instead"))
static bool GetHandPositionAndOrientation
(
    int32 ControllerIndex,
    EControllerHand Hand,
    FVector & OutPosition,
    FRotator & OutOrientation
)

Remarks

Given a controller index and a hand, returns the position and orientation of the controller

Returns

True if the specified controller index has a valid tracked device ID

Parameters

Parameter

Description

ControllerIndex

Index of the controller to get the tracked device ID for

Hand

Which hand's controller to get the position and orientation for

OutPosition

(out) Current position of the device

OutRotation

(out) Current rotation 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