跳转至

MetaHuman 注目跟随(眼睛看向玩家,Face Control Rig)

在面部动画蓝图中通过 Control Rig 节点驱动 CTRL Eyes Aim,让 MetaHuman 的眼睛注视玩家。

动画节点:Control Rig

在面部动画蓝图(Face AnimBP)的 AnimGraph 中加入 Control Rig 节点,Control Rig Class 选择 Face_ControlBoard_CtrlRig(下拉中还有 AdditiveControlRig、FKControlRig、MetaHuman_ControlRig、metahuman_proc_ControlRig、Neck_CtrlRig 等可选项)。

Control Rig 节点与 Control Rig Class 设置

新增变量

在动画蓝图里新增以下变量:

变量 类型
palyerPos_face(即 playerPos_face,截图中拼写如此) Vector
Current Eyes Aim Location Vector
Target Eyes Aim Location Vector
Interactiv Range(Interactive Range) Float
Over Close Range Float
Look At Range Degree Float
Should Move Eyes Randomly Boolean
Convergence Float

新增变量列表

宏

宏 1:求面部平面(Origin / Normal)——通过 Get Owning Component 取动画实例所属组件,再用 Get Socket Transform(In Socket Name 为 FACIAL_C_12IPV_Forehead3,Transform Space 为 RTS World):Location 输出作 Origin;Rotation 经 Get Up Vector 乘以 Make Literal Float(20.0)后与 Location 相加,输出作 Normal。

宏:求额头平面原点与法线

宏 2:求双眼中心点 Eye Center——用 Get Socket Location 分别取 FACIAL_R_Eye 和 FACIAL_L_Eye 两个 Socket 的位置,相减后除以 Make Literal Float(2.0),再相加,输出 Eye Center(即两眼连线中点)。

宏:求双眼中心点

蓝图

把变量接到 Control Rig 节点暴露出的控制引脚上:

  • CTRL Look at Switch 设为 1.0(开启注视)
  • CTRL C Eyes Aim Location X / Y / Z 分别连 Current Eyes Aim Location 的 X / Y / Z(截图中 Z 减去了 7.5)
  • CTRL Convergence Switch 连 Convergence 变量
  • 其他可用引脚:CTRL L/R Eye Blink、CTRL L/R Mouth Corner Pull、CTRL C Eyes Aim Rotation / Scale 等

Control Rig 节点暴露的眼睛控制引脚

事件图表中计算注视点的完整蓝图逻辑(原始截图节点过密,待补充文字说明):

注目跟随事件图表蓝图

如果要在 Live Link 面捕时仍启用注视:在面部 AnimGraph 中,Use cached pose 'BodyPose' 与 Live Link Pose 节点(Live Link Subject Name 指定 ARKit Face Subject)输出经 mh_arkit_mapping_pose 重映射后,再接上述 Control Rig 节点(CTRL Look at Switch = 1.0,连入 CTRL C Eyes Aim Location 等引脚)。

Live Link 下启用注视的动画图表

ID:53 | 更新:2026-06-11