Navigation
API > API/Runtime > API/Runtime/HeadMountedDisplay > API/Runtime/HeadMountedDisplay/IMotionController
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool GetControllerOrientationAndPosition
(
const int32 ControllerIndex, |
Returns the calibration-space orientation of the requested controller's hand. | IMotionController.h | |
bool GetControllerOrientationAndPosition
(
const int32 ControllerIndex, |
Returns the calibration-space orientation of the requested controller's hand. | IMotionController.h |
GetControllerOrientationAndPosition(const int32, const FName, FRotator &, FVector &, float)
Description
Returns the calibration-space orientation of the requested controller's hand.
| Name | GetControllerOrientationAndPosition |
| Type | function |
| Header File | /Engine/Source/Runtime/HeadMountedDisplay/Public/IMotionController.h |
| Include Path | #include "IMotionController.h" |
bool GetControllerOrientationAndPosition
(
const int32 ControllerIndex,
const FName MotionSource,
FRotator & OutOrientation,
FVector & OutPosition,
float WorldToMetersScale
) const
True if the device requested is valid and tracked, false otherwise
Parameters
| Name | Remarks |
|---|---|
| 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. |
GetControllerOrientationAndPosition(const int32, const FName, FRotator &, FVector &, bool &, FVector &, bool &, FVector &, bool &, FVector &, float)
Description
Returns the calibration-space orientation of the requested controller's hand.
| Name | GetControllerOrientationAndPosition |
| Type | function |
| Header File | /Engine/Source/Runtime/HeadMountedDisplay/Public/IMotionController.h |
| Include Path | #include "IMotionController.h" |
bool GetControllerOrientationAndPosition
(
const int32 ControllerIndex,
const FName MotionSource,
FRotator & OutOrientation,
FVector & OutPosition,
bool & OutbProvidedLinearVelocity,
FVector & OutLinearVelocity,
bool & OutbProvidedAngularVelocity,
FVector & OutAngularVelocityAsAxisAndLength,
bool & OutbProvidedLinearAcceleration,
FVector & OutLinearAcceleration,
float WorldToMetersScale
) const
True if the device requested is valid and tracked, false otherwise
Parameters
| Name | Remarks |
|---|---|
| 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 |
| OutbProvidedLinearVelocity | (out) True if linear velocity was provided. |
| OutLinearVelocity | (out) The Linear velocity of the controller. |
| OutbProvidedAngularVelocity | (out) True if angular velocity was provided. |
| OutAngularVelocityAsAxisAndLength | (out) The angular velocity of the controller represented as an axis of rotation who's magnitude is the velocity in radians per second. See UHeadMountedDisplayFunctionLibrary::GetControllerTransformForTime2 for an example of how this can be turned into an FRotator without losing rotation speed beyond 180 degrees/second. |
| OutbProvidedLinearAcceleration | (out) True if linear acceleration was provided. |
| OutLinearAcceleration | (out) The Linear acceleration of the controller. |
| WorldToMetersScale | The world scaling factor. |