Motion Controller device interface 更多...
#include <IMotionController.h>
类 IMotionController 继承关系图:Public 成员函数 | |
| virtual void | EnumerateSources (TArray< FMotionControllerSource > &SourcesOut) const =0 |
| Called to request the motion sources that this IMotionController provides 更多... | |
| virtual bool | GetControllerOrientationAndPosition (const int32 ControllerIndex, const FName MotionSource, FRotator &OutOrientation, FVector &OutPosition, float WorldToMetersScale) const =0 |
| Returns the calibration-space orientation of the requested controller's hand. 更多... | |
| virtual bool | GetControllerOrientationAndPositionForTime (const int32 ControllerIndex, const FName MotionSource, FTimespan Time, bool &OutTimeWasUsed, FRotator &OutOrientation, FVector &OutPosition, bool &OutbProvidedLinearVelocity, FVector &OutLinearVelocity, bool &OutbProvidedAngularVelocity, FVector &OutAngularVelocityRadPerSec, float WorldToMetersScale) const =0 |
| 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. 更多... | |
| virtual ETrackingStatus | GetControllerTrackingStatus (const int32 ControllerIndex, const FName MotionSource) const =0 |
| Returns the tracking status (e.g. 更多... | |
| virtual float | GetCustomParameterValue (const FName MotionSource, FName ParameterName, bool &bOutValueFound) const =0 |
| Returns a custom names parameter value 更多... | |
| virtual FName | GetMotionControllerDeviceTypeName () const =0 |
| Returns the device type of the controller. 更多... | |
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.
|
pure virtual |
Called to request the motion sources that this IMotionController provides
| Sources | A motion source enumerator object that IMotionControllers can add source names to |
在 FXRMotionControllerBase 内被实现.
|
pure virtual |
Returns the calibration-space orientation of the requested controller's hand.
| 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. |
在 FXRMotionControllerBase 内被实现.
|
pure virtual |
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.
This is only intended to work with times very near the current frame. In general it should be called immediatly after receiving the button press. On many platforms this functionality is not supported and this function will set OutTimeWasUsed to false and then call GetControllerOrientationAndPosition, ignoring Time.
| ControllerIndex | The Unreal controller (player) index of the controller set |
| MotionSource | Which source, within the motion controller to get the orientation and position for |
| Time | The time at which we would like to query the orientation. |
| OutTimeWasUsed | (out) If true the time was used somehow to give a more temporally relevant orientation. If false the time was ignored and a cached value returned. |
| 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. |
| OutAngularVelocityRadPerSec | (out) The angular velocity of the controller in Radians per Second. |
| WorldToMetersScale | The world scaling factor. |
在 FXRMotionControllerBase 内被实现.
|
pure virtual |
Returns the tracking status (e.g.
not tracked, intertial-only, fully tracked) of the specified controller
在 FXRMotionControllerBase 内被实现.
|
pure virtual |
Returns a custom names parameter value
| MotionSource | The name of the motion source we want parameters for |
| ParameterName | The specific value we are looking for |
| bOutValueFound | (out) Whether the parameter could be found |
在 FXRMotionControllerBase 内被实现.
|
pure virtual |
Returns the device type of the controller.