FXRMotionControllerBase::GetControllerOrientationAndPosition

Returns the calibration-space orientation of the requested controller's hand.

Windows
MacOS
Linux

Override Hierarchy

IMotionController::GetControllerOrientationAndPosition()

FXRMotionControllerBase::GetControllerOrientationAndPosition()

References

Module

HeadMountedDisplay

Header

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

Include

#include "XRMotionControllerBase.h"

Source

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

Syntax

virtual bool GetControllerOrientationAndPosition
(
    const int32 ControllerIndex,
    const FName MotionSource,
    FRotator & OutOrientation,
    FVector & OutPosition,
    float WorldToMetersScale
) const

Remarks

Returns the calibration-space orientation of the requested controller's hand.

Returns

True if the device requested is valid and tracked, false otherwise

Parameters

Parameter

Description

ControllerIndex

The Unreal controller (player) index of the controller set

MotionSource

Which source, within the motion controller to get the orientation and position for

OutOrientation

(out) If tracked, the orientation (in calibrated-space) of the controller in the specified hand

OutPosition

(out) If tracked, the position (in calibrated-space) of the controller in the specified hand

WorldToMetersScale

The world scaling factor.

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