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
&40;
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
&41; const
Remarks
Note: In this class we are providing a default implementation of GetControllerOrientationAndPosition with velocity, etc parameters and GetControllerOrientationAndPositionForTime that never provide that data and require override of the four param version because this is the most common implementation now. Any child class that does support some of the additional params should override all three functions.