IMotionController

Motion Controller device interface

Windows
MacOS
Linux

Inheritance Hierarchy

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

Name Description

Public function Virtual

~IMotionController()

Functions

Name Description

Public function Const

void

 

EnumerateSources

(
    TArray< FMotionControllerSource >&...
)

Called to request the motion sources that this IMotionController provides

Public function Const

bool

 

GetControllerOrientationAndPosition

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

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

Public function Const

ETrackingSta...

 

GetControllerTrackingStatus

(
    const int32 ControllerIndex,
    const FName MotionSource
)

Returns the tracking status (e.g. not tracked, intertial-only, fully tracked) of the specified controller

Public function Const

float

 

GetCustomParameterValue

(
    const FName MotionSource,
    FName ParameterName,
    bool& bOutValueFound
)

Returns a custom names parameter value

Public function Const

bool

 

GetHandJointPosition

(
    const FName MotionSource,
    int jointIndex,
    FVector& OutPosition
)

Public function Static

FName

 

GetModularFeatureName()

Public function Const

FName

 

GetMotionControllerDeviceTypeName()

Returns the device type of the controller.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback