Navigation
API > API/Runtime > API/Runtime/AnimGraphRuntime > API/Runtime/AnimGraphRuntime/UKismetAnimationLibrary
References
| Module | AnimGraphRuntime |
| Header | /Engine/Source/Runtime/AnimGraphRuntime/Public/KismetAnimationLibrary.h |
| Include | #include "KismetAnimationLibrary.h" |
| Source | /Engine/Source/Runtime/AnimGraphRuntime/Private/KismetAnimationLibrary.cpp |
static void K2_TwoBoneIK
&40;
const FVector & RootPos,
const FVector & JointPos,
const FVector & EndPos,
const FVector & JointTarget,
const FVector & Effector,
FVector & OutJointPos,
FVector & OutEndPos,
bool bAllowStretching,
float StartStretchRatio,
float MaxStretchScale
&41;
Remarks
Computes the transform for two bones using inverse kinematics.
Parameters
| Name | Description |
|---|---|
| RootPos | The input root position of the two bone chain |
| JointPos | The input center (elbow) position of the two bone chain |
| EndPos | The input end (wrist) position of the two bone chain |
| JointTarget | The IK target for the write to reach |
| Effector | The position of the target effector for the IK Chain. |
| OutJointPos | The resulting position for the center (elbow) |
| OutEndPos | The resulting position for the end (wrist) |
| bAllowStretching | If set to true the bones are allowed to stretch |
| StartStretchRatio | The ratio at which the bones should start to stretch. The higher the value, the later the stretching wil start. |
| MaxStretchScale | The maximum multiplier for the stretch to reach. |