Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Animation > API/Runtime/Engine/Animation/UMirrorDataTable
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Animation/MirrorDataTable.h |
Include | #include "Animation/MirrorDataTable.h" |
Source | /Engine/Source/Runtime/Engine/Private/Animation/MirrorDataTable.cpp |
static FName FindBestMirroredBone
&40;
const FName InBoneName,
const FReferenceSkeleton & InRefSkeleton,
EAxis::Type InMirrorAxis,
const float SearchThreshold
&41;
Remarks
Finds the "best matching" mirrored bone across the specified axis. Priority is given to bones with the mirrored name, falling back to spatial proximity if no mirrored bone is found using the naming rules.
When falling back to proximity, bones within the SearchThreshold distance are considered coincident and a fuzzy string comparison is used to find the most likely bone that matches the input bone.
NOTE: The naming scheme assumes a mirror axis of X (Left/Right). Naming rules for other axes are not supported. The "best match" mirrored bone
Parameters
Name | Description |
---|---|
InBoneName | The input bone for which you want to find the mirrored equivalent |
InRefSkeleton | The reference skeleton used to find bone names and their spatial relationships (in ref pose) |
InMirrorAxis | The axis to cross when searching for a mirrored bone |
SearchThreshold | The distance in Unreal units to consider when trying to "tie-break" coincident bones |