[Control Rig] Unreal Engine 5.2 Control Rig 教學 - Foot IK - Leg Adjustment - # 5 |腿部調整 |Tutorial
- Liling Liu
- 2023年10月3日
- 讀畢需時 1 分鐘
Leg Adjustment 腿部調整

創建一個Function: Foot Offset
Foot Offset
Input add: Bone (Rig Element Key), TraceHit(Boolean), TargetOffsetZ(float), CurrentHeight(float)
Output add: New Height (Float)

使用剛剛已經得知Pelvis offset target Z 的值,跟左右腳的Target Offset Z來做相減就能知道差距多少。為了更明確是否有Hit的,這邊使用IF來判定。

使用骨頭/控制器的Transform與差距值做變化方向並得到值,將這個值設定回去給骨頭/控制器的Translation。
這個差距值就是目前新的高度Z值

最終的 Foot Offset

將剛剛製作好的 Foot Offset Function,進行左右腳設定
先在Variables 新增變數

再將剛剛的Fucntion節點連結上
左腳

右腳

最後是這樣

呈現結果

整個專案和文件下載 / Full projects and Documents Download: https://www.patreon.com/posts/control-rig-5-2-89966351?utm_medium=clipboard_copy&utm_source=copyLink&utm_campaign=postshare_creator&utm_content=join_link
Kommentare