Navigation
API > API/Editor > API/Editor/CurveEditor > API/Editor/CurveEditor/FPositionMirrorSolver
Description
Adds key positions that are to be mirrored.
InStartY and InMiddlePointY define two imaginary, x-axis aligned lines. All keys must be between or on these two lines for the mirroring to work as expected.
| Name | AddKeyPositions |
| Type | function |
| Header File | /Engine/Source/Editor/CurveEditor/Public/Misc/Mirror/PositionMirrorSolver.h |
| Include Path | #include "Misc/Mirror/PositionMirrorSolver.h" |
| Source | /Engine/Source/Editor/CurveEditor/Private/Misc/Mirror/PositionMirrorSolver.cpp |
bool AddKeyPositions
(
const FCurveModelID & InCurveId,
TArray < FKeyHandle > InKeys,
TArray < FKeyPosition > InPositions
)
Whether any of the keys can be interpolated (only user specified tangents can be interpolated).
Parameters
| Name | Remarks |
|---|---|
| InCurveId | The curve that all keys lie on |
| InKeys | The keys whose tangents to recompute |
| InPositions | The positions of the keys, if you have them already (optimization). If not, pass in empty and the key positions are determined. |