Navigation
API > API/Plugins > API/Plugins/XRBase > API/Plugins/XRBase/FXRMotionControllerBase
- IMotionController::GetControllerOrientationAndPositionForTime()
- FXRMotionControllerBase::GetControllerOrientationAndPositionForTime()
References
| Module | XRBase |
| Header | /Engine/Plugins/Runtime/XRBase/Source/XRBase/Public/XRMotionControllerBase.h |
| Include | #include "XRMotionControllerBase.h" |
| Source | /Engine/Plugins/Runtime/XRBase/Source/XRBase/Private/XRMotionControllerBase.cpp |
virtual bool GetControllerOrientationAndPositionForTime
(
const int32 ControllerIndex,
const FName MotionSource,
FTimespan Time,
bool & OutTimeWasUsed,
FRotator & OutOrientation,
FVector & OutPosition,
bool & OutbProvidedLinearVelocity,
FVector & OutLinearVelocity,
bool & OutbProvidedAngularVelocity,
FVector & OutAngularVelocityAsAxisAndLength,
bool & OutbProvidedLinearAcceleration,
FVector & OutLinearAcceleration,
float WorldToMetersScale
) const
Remarks
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.