[Control Rig] Unreal Engine 5.2 Control Rig 教學 - Foot IK - Foot Trace - # 3 ｜腳部軌跡｜Tutorial
Add foot controllers
Set the connection between the controller and the bone
Connect the controller to the Full Body IK node
Root : Pelvis
Effectors: foot_I, foot_r, spine_04
calf_I, calf_r, pelvis
Use Preferred angles: turn on
Preferred Angles: Z:45
Rotation Stiffness: 0.95
Position Stiffness: 0.95
It will be reused function, so wrap the nodes together.
Create a Function: Foot Trace
Input add: Bone (Rig Element Key)
Output add： Trace Hit (Boolean), Trace Offset Z (Float)
Match the direction and position of the bone with Sphere Trace to determine the collision situation. Currently, the Z axis is set to 100. In order to facilitate adjustment, it promotes a parameter variable to adjust. The name is FlootHitDistance, which can be adjusted according to the character.
In order to make it easier to debug, use draw line and transform here to make line and axis phase judgments.
In order to prevent the feet from sticking to the ground, add 1 to Hit Location Z. To facilitate adjustment, it is also promotes as a parameter variable, and the name is AdditionHitOffset.
Final Foot Trace Function
Use the Foot Trace Function to set the left and right feet.
Connect the function node
In the game, if you want to see the Control Rig Debug line, press ~ on the keyboard, and the > input area will appear.
Type : “ a.AnimNode.ControlRig.Debug 1 “
整個專案和文件下載 / 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