Inverse Kinematics
Ported from Microsoft's XNA 4.0 Inverse Kinematics sample.
Source for this sample on GitHub ↗
Play ▸
Opens in a new tab.
About this sample
A 20-link cylinder chain uses cyclic coordinate descent to reach the cat you move. The original also applies the same algorithm to an Xbox LIVE avatar when its renderer is ready; the browser shows the cylinder chain because that avatar service is unavailable on this platform.
Controls
| Action | Control |
|---|---|
| Pause or resume the simulation | P |
| Toggle single-step mode | Enter |
| Advance one step | Space |
| Move the cat | W, A, S, D |
| Move the cat toward or away from the camera | Q and E |
| Rotate the camera | Arrow keys |
| Zoom the camera | Z and X |
| Reset | R |
| Exit | Escape |