Navigation
API > API/Plugins > API/Plugins/UAF > API/Plugins/UAF/FRetargetingTools
Description
Per-bone reference-pose translation correction. This is the step that moves authored offsets across differing proportions without touching rotation.
| Name | TranslationRetargetReferencePoseBone |
| Type | function |
| Header File | /Engine/Plugins/Experimental/UAF/UAF/Source/UAF/Public/RetargetingTools.h |
| Include Path | #include "RetargetingTools.h" |
template<bool bIsAdditive>
static void TranslationRetargetReferencePoseBone
(
const USkeleton * SourceSkeleton,
const USkeleton * TargetSkeleton,
const FSkeletonRemapping & SkeletonRemapping,
bool bUseSourceRetargetModes,
bool bDisableRetargeting,
const int32 PoseBoneIndex,
const int32 TargetSkeletonBoneIndex,
FLODPose & OutPose
)
Parameters
| Name | Remarks |
|---|---|
| bIsAdditive | True if the source pose is additive (deltas relative to a reference pose), in which case additive-space retargeting is applied. False for absolute poses. |
| SourceSkeleton | Source skeleton to retarget from. |
| TargetSkeleton | Retargeting target skeleton. |
| SkeletonRemapping | Maps source and target skeleton bone indices. |
| bUseSourceRetargetModes | Set to true when you wish to extract the retarget mode from the source skeleton instead of the target skeleton. |
| bDisableRetargeting | Is translational retargeting disabled? |
| PoseBoneIndex | Target pose bone index. |
| TargetSkeletonBoneIndex | Target skeleton bone index. |
| OutPose | Target pose receiving the translation fix. |