Ue Control Rig And Ik 标志

Ue Control Rig And Ik

社区
kevinpbuckley
ue-control-rig-and-ik

Procedural animation and inverse kinematics in Unreal Engine — Control Rig (RigVM-based graph that manipulates a bone/control hierarchy), IK Rig (solver definitions with Full-Body IK, Limb IK, Set Transform), the IK Retargeter (transfers animation between skeletons of different proportions), and lightweight AnimGraph IK nodes (Two Bone IK, FABRIK, CCDIK). Use when implementing foot placement on terrain, hand/weapon IK, look-at, procedural pose fixups, runtime retargeting, or sharing an animation library across characters with different skeletons. Covers UControlRig, URigHierarchy, FRigUnit, UIKRigDefinition, UIKRetargeter, FAnimNode_ControlRig, FAnimNode_IKRig, FAnimNode_RetargetPoseFromMesh, FIKRigGoal, UControlRigComponent, UIKRigComponent.

Add to TypingMind

概览

发布者kevinpbuckley
代码仓库unreal-engine-skills
技能名称ue-control-rig-and-ik
星标数
89
复刻数
9
附带文件
3
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 3 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 kevinpbuckley 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Ue Control Rig And Ik AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/kevinpbuckley/unreal-engine-skills/tree/master/skills/core/ue-control-rig-and-ik
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kevinpbuckley/unreal-engine-skills.git /tmp/unreal-engine-skills
mkdir -p .claude/skills
cp -r /tmp/unreal-engine-skills/skills/core/ue-control-rig-and-ik .claude/skills/ue-control-rig-and-ik
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Ue Control Rig And Ik,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Ue Control Rig And Ik。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Ue Control Rig And Ik 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Control Rig & IK

When baked clips are insufficient — feet must land on uneven terrain, hands must grip a moving weapon, or animation must transfer between different skeletons — reach for Unreal's procedural animation suite: Control Rig, the IK Rig, and the IK Retargeter. Both systems are plugins that extend the core animation system (ue-animation-system).

When to use this skill

  • Foot/leg placement on uneven terrain, stairs, or slopes (foot IK, pelvis adjustment).
  • Hand/weapon IK, two-handed grips, look-at or aim offsets.
  • Procedural secondary motion, runtime pose corrections, or physics-driven adjustments.
  • Retargeting an animation library from one character skeleton to another at import time (offline) or at runtime via FAnimNode_RetargetPoseFromMesh.
  • Authoring a Control Rig asset for Sequencer cinematics or building a custom rig in C++.

The tools — pick by problem

ToolCore typeUse for
Control RigUControlRig / URigHierarchyCustom IK, procedural animation, in-editor keyframing, sequencer
IK RigUIKRigDefinitionSolver setup (FBIK, Limb IK) used standalone or as retarget source/target
IK RetargeterUIKRetargeterTransfers animation between two IK Rigs; offline export or live runtime
AnimGraph IK nodesFAnimNode_IKRig, FAnimNode_RetargetPoseFromMeshAnimBP integration of IK Rig and retargeter
Simple limb IKBuilt-in AnimBP nodesTwo Bone IK, FABRIK, CCDIK — single-limb needs without a full Control Rig

Enable plugins: Control Rig and IK Rig (both ship with UE; disabled by default).


Control Rig

Mental model

A Control Rig asset (UControlRig) contains a RigVM graph that runs node-based logic over a URigHierarchy — a tree of typed elements (bones, controls, nulls, curves). The graph executes on two events: Forward Solve (runtime pose evaluation) and Backwards Solve / Construction (for editor keyframing and rig setup).

FRigUnit is the base struct for every rig graph node. Custom C++ rig units subclass it. UControlRig subclasses URigVMHost and exposes GetHierarchy() to read/write bone and control transforms at runtime.

Placing Control Rig in an AnimGraph

The AnimGraph node FAnimNode_ControlRig (AnimNode_ControlRig.h:21) integrates a UControlRig into an Animation Blueprint. It accepts a source pose, drives the rig's Forward Solve each frame, and outputs the modified pose.

Key node properties:

  • Control Rig Class — the TSubclassOf<UControlRig> that the node instantiates.
  • Transfer Input Pose — lets the rig read the incoming animated pose (required for overlay/fixup rigs; disable for fully procedural rigs).
  • Alpha / LOD Threshold — blend strength and max LOD to run the rig.

Expose rig variables as pins on the node (mark them instance-editable in the rig graph), then wire AnimBP logic (traces, curve reads) into those pins each frame.

Runtime access via UControlRigComponent

For actors that need Control Rig outside an AnimBP (e.g., a prop driven by game code), attach a UControlRigComponent (ControlRigComponent.h:175). It hosts the rig, maps scene components to rig elements, and ticks the solve each frame independently.

cpp
// Attach component and assign rig class in the constructor or BeginPlay
UControlRigComponent* CRC = NewObject<UControlRigComponent>(this);
CRC->SetControlRigClass(UMyFootIKRig::StaticClass());
CRC->RegisterComponent();

Access the running instance with CRC->GetControlRig() and call ControlRig->SetControlValue(...) / ControlRig->GetControlValue(...) to drive controls from game code. GetHierarchy() returns the live URigHierarchy for direct bone queries.

Modular Control Rig (UE 5.5+)

UModularRig (ModularRig.h) composes multiple rig modules into one character rig. Each FRigModuleInstance is a named slot in the modular hierarchy. An agent assembling a character rig should prefer modular rigs when the character has swappable limb rigs.

Sequencer integration

Animators keyframe Control Rig controls directly in Sequencer via a Control Rig track added to a skeletal mesh actor. The rig's Backwards Solve event maps keyframed control transforms back to bones. From C++, retrieve the running rig via UControlRig::FindControlRigs(Outer, UControlRig::StaticClass()).


IK Rig + solvers

Mental model

An IK Rig (UIKRigDefinition, IKRigDefinition.h:206) is an asset bound to a skeleton that holds:

  • Goals (UIKRigEffectorGoal) — named effector points with position/rotation targets.
  • Solvers — ordered stack of FIKRigSolverBase subclasses that pull bones toward goals. Each solver runs in sequence; results cascade.
  • Retarget chains (FBoneChain) and a pelvis bone — used by the retargeter.

Available solvers in Plugins/Animation/IKRig/Source/IKRig/Public/Rig/Solvers/:

SolverWhen to use
Full Body IK (IKRigFullBodyIK.h)Multi-effector, physics-based solver; best for whole-body foot+hand placement
Limb IK (IKRigLimbSolver.h)Two-bone analytic IK; fast, great for a single arm or leg
Set TransformPins a bone to a goal with no IK solve; useful for pelvis/root offsets

Driving IK goals at runtime via UIKRigComponent

Attach a UIKRigComponent (IKRigComponent.h:14) to the character actor. It implements IIKGoalCreatorInterface, so FAnimNode_IKRig automatically discovers and reads its goals.

cpp
// Drive the left foot goal from game code
UIKRigComponent* IKComp = GetComponentByClass<UIKRigComponent>();
if (IKComp)
{
    // Position in component space of the skeletal mesh; alpha 1 = fully IK-driven
    IKComp->SetIKRigGoalPositionAndRotation(
        FName("LeftFootGoal"),
        LeftFootHitLocation,   // from line trace
        LeftFootHitNormal.Rotation().Quaternion(),
        1.0f,  // position alpha
        1.0f   // rotation alpha
    );
}

FIKRigGoal (IKRigDataTypes.h) carries the goal name, position, rotation, alphas, and the space enum (EIKRigGoalSpace: Component, Additive, or World).

AnimGraph: FAnimNode_IKRig

Add the IK Rig AnimGraph node, assign the UIKRigDefinition asset, and wire goal transforms from pins or from a UIKRigComponent on the actor. The node runs the IK solve on top of the incoming base pose each frame.

[Base Pose] → [IK Rig node (RigDefinitionAsset=MyFootIKRig, Goals=...)] → [Output Pose]

Place the IK Rig node after the state machine / locomotion blend so it modifies an already-computed base pose.


IK Retargeter

Mental model

An IK Retargeter (UIKRetargeter, IKRetargeter.h:70) links a source UIKRigDefinition to a target UIKRigDefinition. It matches named retarget chains (spine, arm-left, leg-right…) by fuzzy name and transfers motion proportionally, compensating for different bone lengths and proportions.

Workflow:

  1. Create an IK Rig for the source skeleton; define retarget chains and set the pelvis.
  2. Create an IK Rig for the target skeleton; define matching chains.
  3. Create an IK Retargeter asset linking source→target.
  4. Edit the Retarget Pose to align T-pose vs A-pose discrepancies.
  5. Either export baked Animation Sequences for the target, or use runtime retargeting.

Runtime retargeting: FAnimNode_RetargetPoseFromMesh

FAnimNode_RetargetPoseFromMesh (AnimNode_RetargetPoseFromMesh.h:28) retargets the pose of a source skeletal mesh component onto the current character in real time. The source mesh component must tick before the target's AnimBP.

cpp
// Expose on the AnimBP's AnimGraph node (set from game code or a property)
// RetargetFrom = ERetargetSourceMode::CustomSkeletalMeshComponent
// SourceMeshComponent = (set to the source character's USkeletalMeshComponent)
// IKRetargeterAsset = MyRetargeter

Key properties: LODThreshold (disable retarget above this LOD), LODThresholdForIK (skip IK but keep FK retarget at high LODs for perf), CustomRetargetProfile (override settings at runtime without changing the asset).

See references/ik-retargeter.md for the retarget chain setup, retarget pose workflow, and the Retarget Operation Stack.


Foot placement pattern (common)

A robust foot IK pattern using IK Rig:

  1. In the AnimInstance's NativeUpdateAnimation, line-trace downward from each foot bone (world space). Store hit location, hit normal, and a ground-clearance flag.
  2. Pass results into the AnimBP thread as UPROPERTY members.
  3. Add a UIKRigComponent with a foot IK setup (Limb IK or FBIK, one goal per foot, one Set Transform for the pelvis).
  4. Each tick, call SetIKRigGoalPositionAndRotation for each foot goal and the pelvis.
  5. In the AnimGraph, the IK Rig node at the end of the graph reads those goal values and solves the legs and pelvis in the correct space.

For pelvis adjustment (keep both feet planted): use a Set Transform solver on the pelvis goal, lowering it by the maximum foot-sink distance so legs can reach both feet.


Simple AnimGraph IK (no Control Rig asset required)

Built-in AnimGraph skeletal control nodes for single-limb needs:

NodeUse
Two Bone IKAnalytic two-bone solve; use for a single arm/leg reaching a target
FABRIKForward-and-backward IK; chains of arbitrary length (tails, tentacles)
CCDIKCyclic-coordinate descent; chains with angle constraints

These nodes require no external assets. Set the effector target location each frame from the AnimBP (typically from a socket or a line-trace result). Place them after the base pose blend, before output.


Gotchas & edge cases

  • Node order — Control Rig / IK nodes must appear after the base pose they modify. Putting IK before the state machine produces zero-pose artifacts.
  • Invalid goal position — a goal at FVector::ZeroVector in world space snaps limbs to the character origin. Always validate trace results before passing them as goals.
  • Wrong goal space — EIKRigGoalSpace::Component vs World vs Additive must match how you computed the target. Additive offsets relative to the current bone; Component is relative to the skeletal mesh component; World is absolute.
  • Retarget chain mismatch — unmatched chain names silently fall back to FK-only retargeting; confirm chains are matched in the IK Retargeter editor's Hierarchy panel.
  • Retarget pose discrepancy (T vs A pose) — the single most common source of broken retargeting; edit the retarget pose for each skeleton to match the source pose.
  • FBIK on many characters — Full Body IK is iterative and CPU-heavy; budget using LOD thresholds (LODThresholdForIK on FAnimNode_RetargetPoseFromMesh; LODThreshold on FAnimNode_IKRig and FAnimNode_ControlRig).
  • Root motion + IK fighting — validate locomotion + IK together; IK on an unconstrained root can cause visible sliding if the root motion is also changing pelvis height.
  • ModularRig path deprecation — GetRigModuleNameSpace() was deprecated in 5.6; use GetRigModulePrefix() instead.

Version notes

  • UModularRig and the modular rig system landed in UE 5.5; before that, only monolithic UControlRig existed.
  • The IK Retarget Operation Stack (Op Stack) replaced the older per-chain FK/IK settings in UE 5.5; the UIKRetargeter::GetRetargetOps() accessor reflects this.
  • FAnimNode_RetargetPoseFromMesh serialization changed in 5.5 (see WithSerializer trait); bUseAttachedParent_DEPRECATED is the old field, removed from active use.
  • FRigUnit C++ unit upgrade guide for 5.2 API changes: see the official doc link below.

References & source material

Engine source (UE 5.8 — all paths under Engine/Plugins/Animation/):

  • ControlRig/Source/ControlRig/Public/ControlRig.h:63 — UControlRig class declaration.
  • ControlRig/Source/ControlRig/Public/ControlRig.h:203 — GetHierarchy().
  • ControlRig/Source/ControlRig/Public/ControlRig.h:277 — Execute(const FName&).
  • ControlRig/Source/ControlRig/Public/ControlRig.h:331 — SetControlValue<T>().
  • ControlRig/Source/ControlRig/Public/AnimNode_ControlRig.h:21 — FAnimNode_ControlRig.
  • ControlRig/Source/ControlRig/Public/ControlRigComponent.h:175 — UControlRigComponent.
  • ControlRig/Source/ControlRig/Public/ModularRig.h — UModularRig, FRigModuleInstance.
  • ControlRig/Source/ControlRig/Public/Units/RigUnit.h:59 — FRigUnit base struct.
  • ControlRig/Source/ControlRig/Public/Rigs/RigHierarchy.h:167 — URigHierarchy.
  • ControlRig/Source/ControlRig/Public/Rigs/RigHierarchy.h:2181 — GetLocalTransform().
  • ControlRig/Source/ControlRig/Public/Rigs/RigHierarchy.h:2229 — SetLocalTransform().
  • ControlRig/Source/ControlRig/Public/Rigs/RigHierarchy.h:2277 — GetGlobalTransform().
  • IKRig/Source/IKRig/Public/Rig/IKRigDefinition.h:134 — FBoneChain.
  • IKRig/Source/IKRig/Public/Rig/IKRigDefinition.h:165 — FRetargetDefinition.
  • IKRig/Source/IKRig/Public/Rig/IKRigDefinition.h:206 — UIKRigDefinition.
  • IKRig/Source/IKRig/Public/Rig/Solvers/IKRigFullBodyIK.h:15 — FIKRigFBIKGoalSettings (FBIK solver settings).
  • IKRig/Source/IKRig/Public/Rig/Solvers/IKRigLimbSolver.h:34 — FIKRigLimbSolver.
  • IKRig/Source/IKRig/Public/Retargeter/IKRetargeter.h:32 — FIKRetargetPose.
  • IKRig/Source/IKRig/Public/Retargeter/IKRetargeter.h:70 — UIKRetargeter.
  • IKRig/Source/IKRig/Public/AnimNodes/AnimNode_IKRig.h:22 — FAnimNode_IKRig.
  • IKRig/Source/IKRig/Public/AnimNodes/AnimNode_RetargetPoseFromMesh.h:28 — FAnimNode_RetargetPoseFromMesh.
  • IKRig/Source/IKRig/Public/ActorComponents/IKRigComponent.h:14 — UIKRigComponent.
  • IKRig/Source/IKRig/Public/Rig/IKRigDataTypes.h — FIKRigGoal, EIKRigGoalSpace.

Official docs (UE 5.8, confirmed live):

Deep-dive references in this skill:

Related skills: ue-animation-system, ue-sequencer-and-cinematics.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Ue Control Rig And Ik AI 技能有什么作用?

Procedural animation and inverse kinematics in Unreal Engine — Control Rig (RigVM-based graph that manipulates a bone/control hierarchy), IK Rig (solver definitions with Full-Body IK, Limb IK, Set Transform), the IK Retargeter (transfers animation between skeletons of different proportions), and lightweight AnimGraph IK nodes (Two Bone IK, FABRIK, CCDIK). Use when implementing foot placement on terrain, hand/weapon IK, look-at, procedural pose fixups, runtime retargeting, or sharing an animation library across characters with different skeletons. Covers UControlRig, URigHierarchy, FRigUnit,...

为什么在 TypingMind 中使用 Ue Control Rig And Ik?

因为您只需安装一次,就能搭配任何模型使用。Ue Control Rig And Ik 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Ue Control Rig And Ik?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/kevinpbuckley/unreal-engine-skills/tree/master/skills/core/ue-control-rig-and-ik。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Ue Control Rig And Ik?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Ue Control Rig And Ik 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Ue Control Rig And Ik 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Ue Control Rig And Ik AI 技能免费吗?

kevinpbuckley 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇