====================================================================
Published: 6 November 2021
Tags: cpp, animation
Joints are probably one of the most complex parts of animating a moving body, since they're at the center of several moving pieces. Daniel Holden has written an extensive article that explores how to "constrain the rotation of a character's joints to within a specified range", by representing it as "functions which take some rotation and map it onto the nearest rotation which respects the limit".