# How to Eliminate Foot Sliding in Game Animation

Original title: Inverse Kinematics and Foot Locking

> Hacker News story 49595505 · language: en · submitted 2026-09-07
> Web version: https://zeli.app/story/49595505
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 143 · by [airhangerf15](<https://news.ycombinator.com/user?id=airhangerf15>) · 💬 15
[original](<https://theorangeduck.com/page/inverse-kinematics-foot-locking>) · [HN discussion](<https://news.ycombinator.com/item?id=49595505>)

## Summary

Foot sliding plagues almost every animation system, and there's no single fix. I share a practical recipe: use a two-bone IK solver to place the heel, orient the toe, and clamp against the ground. Then lock the toe during contact states with inertialization, automatically detect contact times, and optionally clean up sliding offline. The full source code is available on GitHub.

## Key quote

> Undoubtedly this topic is much more of an art than a science - which might explain why it isn't always easy to find resources on it - and why it gets less attention in the academic sphere.

## HN discussion (15 comments)

### [simonebrunozzi](<https://news.ycombinator.com/item?id=49671498>)

> Wow, after a lot of code, the animations at the bottom of the article are really mind-blowing. Super well done.

### [mmastrac](<https://news.ycombinator.com/item?id=49670949>)

> This is one of the best references on this topic I've seen - run cycles and foot locking are annoyingly lacking in documentation outside a few papers.

### [windriverthrum](<https://news.ycombinator.com/item?id=49670738>)

> Such beautiful animations. Too much detail is missing from this post and its related post on "two-joint inverse kinematics" (that is actually three joint inverse kinematics) - what are the joint types? which inverse kinematics problem is being solved (position, orientation, or both?). This could be a great post if the author spends some more time polishing it.

---

## Cite

- Page: https://zeli.app/story/49595505
- Date: 2026-09-07
- Source: theorangeduck.com (https://theorangeduck.com/page/inverse-kinematics-foot-locking)
- Hacker News: https://news.ycombinator.com/item?id=49595505

## Other languages

- zh: https://zeli.app/zh/story/49595505 · markdown: https://zeli.app/zh/story/49595505.md
- ja: https://zeli.app/ja/story/49595505 · markdown: https://zeli.app/ja/story/49595505.md
- ko: https://zeli.app/ko/story/49595505 · markdown: https://zeli.app/ko/story/49595505.md
- de: https://zeli.app/de/story/49595505 · markdown: https://zeli.app/de/story/49595505.md
- es: https://zeli.app/es/story/49595505 · markdown: https://zeli.app/es/story/49595505.md
- ru: https://zeli.app/ru/story/49595505 · markdown: https://zeli.app/ru/story/49595505.md
