How to make CR_SphereTrace Leg Left In Content Example


I wanted to create ik on the feet, so I tried adding CR_SphereTrace to the control rig and it worked, but the problem was that it only had ik on one right leg.


I’ve tried changing from _r to _l all but it seems to be bug

I doubt there’s a bug. But since you didn’t provide the screenshots of all the related parts to your IK feet logic yet, all I can do is suggesting you to follow the steps in these videos:

I’ll try it, Thank you.

I can do IK now, but what I’m wondering is how to make the feet stick to the ground

My feet were now slightly off the ground.



I fixed it. Just adjust these 3 values ​​to the opposite of the file. CR_SphereTrace in Content Example from 1 to -1 from -1 to 1 you get ik Foot l

From the tracing result you have Hit normal, that gives you informations about the terrain slope angle.
You can use an aim math node, then set the foot rotation by using the rotation output from the aim match node and the current foot rotation, basically multiplying quaternions.
I think that the CR_SphereTrace in the content example also uses hit normal to adapt the foot to the slope, so you can replicate the same setup.

I did it! But when I migrate to another project, my legs drag on the ground all the time. Do I need to install any plugins first?