Leg Adjustment
![](https://static.wixstatic.com/media/204c38_f940904761994ba0adbbc9077dd9729a~mv2.png/v1/fill/w_980,h_550,al_c,q_90,usm_0.66_1.00_0.01,enc_auto/204c38_f940904761994ba0adbbc9077dd9729a~mv2.png)
Create a Function: Foot Offset
Foot Offset
Input add: Bone (Rig Element Key), TraceHit(Boolean), TargetOffsetZ(float), CurrentHeight(float)
Output add: New Height (Float)
![](https://static.wixstatic.com/media/204c38_79ad54db110e45cd8345c5f1a47bc076~mv2.png/v1/fill/w_518,h_205,al_c,q_85,enc_auto/204c38_79ad54db110e45cd8345c5f1a47bc076~mv2.png)
Use the value of Pelvis offset target Z, and subtract it from the Target Offset Z of the left and right feet to know the difference. In order to be more clear about whether there is a Hit, use IF node to determine it.
![](https://static.wixstatic.com/media/204c38_e88ff708915f41949801f24d724ea23d~mv2.png/v1/fill/w_377,h_229,al_c,q_85,enc_auto/204c38_e88ff708915f41949801f24d724ea23d~mv2.png)
Use the Transform of the bone/controller and the gap value to change the direction and get the value. Set this value back to the Translation of the bone/controller.
This value is the current new height Z value.
![](https://static.wixstatic.com/media/204c38_04819caf948f4cdc87c95966937fd067~mv2.png/v1/fill/w_346,h_262,al_c,q_85,enc_auto/204c38_04819caf948f4cdc87c95966937fd067~mv2.png)
Final Foot Offset function
![](https://static.wixstatic.com/media/204c38_9c40c53ab28841d5a3781ab1de232d92~mv2.png/v1/fill/w_553,h_279,al_c,q_85,enc_auto/204c38_9c40c53ab28841d5a3781ab1de232d92~mv2.png)
Use the Foot Offset Function to set the left and right feet.
Add variables
![](https://static.wixstatic.com/media/204c38_a948a719e43a44349bd5e0a5506906b8~mv2.png/v1/fill/w_320,h_53,al_c,q_85,enc_auto/204c38_a948a719e43a44349bd5e0a5506906b8~mv2.png)
Connect the function
Left
![](https://static.wixstatic.com/media/204c38_cf0d145537b741aebb085fd99101682e~mv2.png/v1/fill/w_553,h_202,al_c,q_85,enc_auto/204c38_cf0d145537b741aebb085fd99101682e~mv2.png)
Right
![](https://static.wixstatic.com/media/204c38_1270d20fe7bf43d9a635ec08d60f9c68~mv2.png/v1/fill/w_512,h_235,al_c,q_85,enc_auto/204c38_1270d20fe7bf43d9a635ec08d60f9c68~mv2.png)
Final connection
![](https://static.wixstatic.com/media/204c38_4646432194f34d3cbeeca58dfa395044~mv2.png/v1/fill/w_554,h_129,al_c,q_85,enc_auto/204c38_4646432194f34d3cbeeca58dfa395044~mv2.png)
Result
![](https://static.wixstatic.com/media/204c38_4c26d0d0b5a34406893bb2f08819aec8~mv2.png/v1/fill/w_456,h_299,al_c,q_85,enc_auto/204c38_4c26d0d0b5a34406893bb2f08819aec8~mv2.png)
整個專案和文件下載 / 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
댓글