Leg Alignment
First, go back to the Foot Trace Function that was created at the beginning to get the Hit Normal information.
Foot Trace
Input add: CurrentHitNormal (Vector)
Output add: Trace Normal (Vector)
Spring Interpolate is used to smoothly move the current to Target.
Final Foot Trace Function
Add Variables
Connect function
Left
Right
Connect together
Create Function: Foot Rotation
Foot Offset
Input add: Bone (Rig Element Key), FloorNormal(Vector)
Use Aim Math for rotation, and treat the Hit Normal value as the Target of Aim Math. Primary - Axis : X=0, Y=0, Z=1。Secondary - Axis: X=0, Y=0, Z=1, Target: X=1, Y=0, Z=0
Kind: Direction
Use the bone/controller Rotation value to multiply the Aim Math Rotation value and set it back to the bone/controller Rotation value.
Final Foot Rotation function
Connect function
Left/Right
Final Result
整個專案和文件下載 / 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
留言