Go about creating a ledge detection system

So I’ve seen in a lot of more modern games, even some older games, a system that will detect if one leg is higher than another and animate/move the one leg to be higher up while the other remains straight. It’s a bit hard to explain so here’s a crude drawing for example:

What I’m wondering is if a system like this either A. already has been made or B. If this is even possible on Roblox and if so, how to go about creating it.

1 Like

You can raycast in front of the direction the character is moving then use inverse kinematics to procedurally animate the legs.

I remember X_O made a tech demo of this. I’ll add it if I can find it.

Here’s that game:

1 Like

research about inverse kinematics