Navigation
API > API/Plugins > API/Plugins/IKRig > API/Plugins/IKRig/Rig > API/Plugins/IKRig/Rig/Solvers
References
| Module | IKRig |
| Header | /Engine/Plugins/Animation/IKRig/Source/IKRig/Public/Rig/Solvers/PointsToRotation.h |
| Include | #include "Rig/Solvers/PointsToRotation.h" |
static FQuat GetRotationFromDeformedPoints
&40;
const TArray< FVector > & InInitialPoints,
const TArray< FVector > & InCurrentPoints,
FVector & OutInitialCentroid,
FVector & OutCurrentCentroid
&41;
Remarks
Given a set of points in an initial configuration and the same set of points in a deformed configuration, this function outputs a quaternion that represents the "best fit" rotation that rotates the initial points to the current points.