Navigation
Unreal Engine C++ API Reference > Runtime > HeadMountedDisplay
Inheritance Hierarchy
- IModularFeature
- IMotionController
- FXRMotionControllerBase
- FXRMotionControllerBaseLegacy
References
Module | HeadMountedDisplay |
Header | /Engine/Source/Runtime/HeadMountedDisplay/Public/IMotionController.h |
Include | #include "IMotionController.h" |
Syntax
class IMotionController : public IModularFeature
Remarks
Motion Controller device interface
NOTE: This intentionally does NOT derive from IInputDeviceModule, to allow a clean separation for devices which exclusively track motion with no tactile input NOTE: You must MANUALLY call IModularFeatures::Get().RegisterModularFeature( GetModularFeatureName(), this ) in your implementation! This allows motion controllers to be both piggy-backed off HMD devices which support them, as well as standing alone.
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
FRotator | AngularVelocityAsAxisAndLengthToRotator
(
const FVector AngularVelocityAsAxisAndLength |
|
![]() ![]() |
void | EnumerateSources
(
TArray< FMotionControllerSource >& SourcesOut |
Called to request the motion sources that this IMotionController provides |
![]() ![]() |
bool | GetControllerOrientationAndPosition
(
const int32 ControllerIndex, |
Returns the calibration-space orientation of the requested controller's hand. |
![]() ![]() |
bool | GetControllerOrientationAndPosition
(
const int32 ControllerIndex, |
Returns the calibration-space orientation of the requested controller's hand. |
![]() ![]() |
bool | GetControllerOrientationAndPositionForTime
(
const int32 ControllerIndex, |
Returns the calibration-space orientation of the requested controller's hand at the specified time for potentially improved temporal precision, particularly fetching the controller transform when a button was pressed on a platform that provides sub-frame timing for button presses. |
![]() ![]() |
ETrackingStatus | GetControllerTrackingStatus
(
const int32 ControllerIndex, |
Returns the tracking status (e.g. not tracked, intertial-only, fully tracked) of the specified controller |
![]() ![]() |
float | GetCustomParameterValue
(
const FName MotionSource, |
Returns a custom names parameter value |
![]() ![]() |
bool | GetHandEnumForSourceName
(
const FName Source, |
|
![]() ![]() |
bool | GetHandJointPosition
(
const FName MotionSource, |
|
![]() ![]() |
FName | ||
![]() ![]() |
FName | Returns the device type of the controller. | |
![]() ![]() |
PRAGMA_DISABLE_DEPRECATION_WARNINGSbool | SetPlayerMappableInputConfig
(
TObjectPtr< class UPlayerMappableInputConfig > InputConfig |
Add a player mappable input config to the motion controller. |
Constants
Name | Description |
---|---|
FeatureName | |
HMDSourceId | |
LeftHandSourceId | Explicit source names |
RightHandSourceId |