Navigation
API > API/Runtime > API/Runtime/HeadMountedDisplay > API/Runtime/HeadMountedDisplay/UMotionControllerComponent
Description
If the motion tracking system provides angular velocity at this time OutAngularVelocity will be that velocity in deg/s in unreal world space and the function will return true. Note that it is not difficult to rotate a controller at more than 0.5 or 1 rotation per second briefly and some mathmatical operations(such as conversion to quaternion) lose rotations beyond 180 degrees or 360 degrees.. In some cases that is OK becuase the resulting final rotation is the same, but in some cases it would generate incorrect results. If angular velocity is unavailable it will return false.
| Name | GetAngularVelocity |
| Type | function |
| Header File | /Engine/Source/Runtime/HeadMountedDisplay/Public/MotionControllerComponent.h |
| Include Path | #include "MotionControllerComponent.h" |
| Source | /Engine/Source/Runtime/HeadMountedDisplay/Private/MotionControllerComponent.cpp |
UFUNCTION (BlueprintPure, Category="Motion Controller Update")
bool GetAngularVelocity
(
FRotator & OutAngularVelocity
) const