I’ve been working on a ratchet project for a very long time and have stumbled upon the IK system. And i’ve been trying to think of all the possible and optimal solution. Even the easier way like Find look at rotation and getting angles from 2 vectors (In my case is From a socket location attached to the upper foot and to the impact point) I’ve tried to rotate it based on the angle of the surfaces, but i didn’t think about the different heights and stuff.
This is what i’m going for.
Currently No height differences
With Height Differences
Angled with the ramp but probably not determined by the angle from the normal.
Angled with the left foot but the right foot is still rotated when it’s on the flat part of the ramp.
Steeper Ramp but not reached the top flat part yet. (Pretty bad perspective ://)
Steeper Ramp on top.
Not really any height differences here but it still rotates to match the angle of the ramp which i don’t really see any solution to.
Running in the middle of the ramps
Skeleton Socket location Setup
1st Solution using Look at rotation.
Results from Look at Rotation (Bone had World space and Add existing)
Setting up Angle between Vectors.
Setting Degrees into the X axis (Bone is Rotating on the Y by X since i set it up like that)
Barely Rotates but the degrees does not seem to be correct.
Same Method but in the air it’s different.
Is there any optimal way to replicate something like this, i’m really hoping that someone can help me with this i’d be very appreciated.